IsBoolean
extends Base
in package
Requires a boolean.
Table of Contents
Properties
- $_loose : mixed
Methods
- __construct() : mixed
- isValid() : bool
- Returns true if validation is successful
- validate() : bool
- Abstract method to be implemented by all validators.
Properties
$_loose
private
mixed
$_loose
Methods
__construct()
public
__construct([bool $loose = false ]) : mixed
Parameters
- $loose : bool = false
isValid()
Returns true if validation is successful
public
isValid(mixed $value) : bool
Parameters
- $value : mixed
Return values
boolvalidate()
Abstract method to be implemented by all validators.
protected
validate(mixed $value) : bool
Parameters
- $value : mixed