EnumField extends Validator
Table of Contents
Methods
- __construct() : mixed
- validate() : Result
Methods
__construct()
public
__construct(Dto $dto, string $fieldToCheck, array<string|int, mixed> $possibleValues) : mixed
Parameters
- $dto : Dto
- $fieldToCheck : string
- $possibleValues : array<string|int, mixed>
validate()
public
validate(array<string|int, mixed> $fields) : Result
Parameters
- $fields : array<string|int, mixed>