InArray implements CheckInterface, ErrorMessageInterface
Attributes
- #[Attribute]
Table of Contents
Interfaces
Properties
- $validValues : array<string|int, mixed>
Methods
- __construct() : mixed
- check() : bool
- getError() : string
Properties
$validValues
public
array<string|int, mixed>
$validValues
Methods
__construct()
public
__construct(array<string|int, mixed> $validValues) : mixed
Parameters
- $validValues : array<string|int, mixed>
check()
public
check(mixed $value) : bool
Parameters
- $value : mixed
Return values
boolgetError()
public
getError(string $field) : string
Parameters
- $field : string