ValidatorInterface
Contract for a validator
Table of Contents
Methods
- getOptions() : array<string|int, mixed>
- Returns the options of this validator which can be specified in the constructor
- validate() : Result
- Checks if the given value is valid according to the validator, and returns the Error Messages object which occurred.
Methods
getOptions()
Returns the options of this validator which can be specified in the constructor
public
getOptions() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>validate()
Checks if the given value is valid according to the validator, and returns the Error Messages object which occurred.
public
validate(mixed $value) : Result
Parameters
- $value : mixed
-
The value that should be validated