Handy helper class to generate and manipulate AND filter arrays.

This class is intended to be only used via the FilterBuilder main class.

 Methods

Create a new instance.

__construct(string $property, mixed $values) 

Parameters

$property

string

The property name to be compared.

$values

mixed

The value to be compared against.

Initialize an instance with the values from the given array.

fromArray(array $array) : mixed
Static

Parameters

$array

array

The initialization array.

Exceptions

\ContaoCommunityAlliance\DcGeneral\Exception\DcGeneralInvalidArgumentException When an invalid array has been passed.

Returns

mixed

Serialize the filter into an array.

get() : array

Returns

array

Retrieve the property name.

getProperty() : string

Returns

string

Retrieve the value to filter for.

getValues() : mixed

Returns

mixed

 Properties

 

The property to be checked.

$property : string
 

The value to compare against.

$values : mixed