ValidatorInterface
interface ValidatorInterface (View source)
Contract for a validator
Methods
validate(mixed $value)
Checks if the given value is valid according to the validator, and returns the Error Messages object which occurred.
array
getOptions()
Returns the options of this validator which can be specified in the constructor
Details
Result
validate(mixed $value)
Checks if the given value is valid according to the validator, and returns the Error Messages object which occurred.
array
getOptions()
Returns the options of this validator which can be specified in the constructor