EnumValidator
extends Validator
Table of Contents
Methods
-
__construct()
: mixed
-
validate()
: bool|string
__construct()
public
__construct([null $errorPhrase = null ]) : mixed
Parameters
-
$errorPhrase
: null
= null
-
-
throws
-
ArgumentTypeException
validate()
public
validate(mixed $value, mixed $primary, array<string|int, mixed> $row, Field|EnumField|BooleanField $field) : bool|string
Parameters
-
$value
: mixed
-
-
$primary
: mixed
-
-
$row
: array<string|int, mixed>
-
-
$field
: Field|EnumField|BooleanField
-
Return values
bool|string