abstract class Filter implements FilterInterface

Base class for all filters

Properties

protected array $params Filter params

Methods

mixed
getType()

Should return filter type

__construct(array $params = [])

Constructor

mixed
filterValue(mixed $value)

Callback run if filter type is FILTER_CALLBACK

mixed
processFilter(mixed $value)

Process filter

Details

at line 31
abstract mixed getType()

Should return filter type

Return Value

mixed

at line 38
__construct(array $params = [])

Constructor

Parameters

array $params

at line 49
mixed filterValue(mixed $value)

Callback run if filter type is FILTER_CALLBACK

Parameters

mixed $value

Return Value

mixed

at line 60
mixed processFilter(mixed $value)

Process filter

Parameters

mixed $value

Return Value

mixed