Base
in package
implements
IValidator
AbstractYes
Validator base class.
Table of Contents
Interfaces
Methods
- __construct() : mixed
- isValid() : bool
- Returns true if validation is successful
- validate() : bool
Methods
__construct()
public
__construct() : mixed
isValid()
Returns true if validation is successful
public
isValid(mixed $data) : bool
Parameters
- $data : mixed
Return values
boolvalidate()
protected
abstract validate(mixed $data) : bool
Parameters
- $data : mixed