A filter holds information for filtering data via the API.
Example:
$filter = new Filter('created', '2018-10-23', '>=');
If you want to filter for NULL
values, you can pass the string 'NULL'
as value.
package |
NextEvent\PHPSDK\Util |
---|
__construct(string $name, integer|string|array|boolean $value, string $operator = '=')
string
The name of the parameter.
integer|string|array|boolean
The value to filter for.
string
The operator. The supported values depend on the requested endpoint.
getName() : string
string
getOperator() : string
string
getValue() : array|string|integer|boolean
array|string|integer|boolean
setName(string $name) : \NextEvent\PHPSDK\Util\Filter
setOperator(string $operator) : \NextEvent\PHPSDK\Util\Filter
setValue(array|string|integer|boolean $value) : \NextEvent\PHPSDK\Util\Filter
toArray() : array
array