Filter implements Validator
FinalYes
Table of Contents
Interfaces
Methods
- __construct() : mixed
- isCorrectFilterFieldName() : bool
- validate() : Result
Methods
__construct()
public
__construct(array<string|int, mixed> $allowedFields) : mixed
Parameters
- $allowedFields : array<string|int, mixed>
isCorrectFilterFieldName()
public
static isCorrectFilterFieldName(string $filterFieldName, string $fieldName) : bool
Parameters
- $filterFieldName : string
- $fieldName : string
Return values
boolvalidate()
public
validate(mixed $value) : Result
Parameters
- $value : mixed