Validator
in package
Table of Contents
- validate() : bool
- Validates the field specified by validates().
- validates() : string
- Must return the validated field name;
Methods
validate()
Validates the field specified by validates().
public
abstract validate(mixed $value) : bool
Returns true when valid; false otherwise.
Parameters
- $value : mixed
Return values
bool —validates()
Must return the validated field name;
public
abstract validates() : string