StringLength
extends Base
in package
Validator base class.
Table of Contents
Properties
- $_MaxLength : mixed
Methods
- __construct() : mixed
- isValid() : bool
- Returns true if validation is successful
- validate() : bool
Properties
$_MaxLength
private
mixed
$_MaxLength
Methods
__construct()
public
__construct(int $MaxLength) : mixed
Parameters
- $MaxLength : int
isValid()
Returns true if validation is successful
public
isValid(mixed $data) : bool
Parameters
- $data : mixed
Return values
boolvalidate()
protected
validate(mixed $Data) : bool
Parameters
- $Data : mixed