PHP Class Bluz\Validator\Rule\Callback

Inheritance: extends AbstractRule
Show file Open project: bluzphp/framework Class Usage Examples

Protected Properties

Property Type Description
$callback callback for check input

Public Methods

Method Description
__construct ( callable $callback ) Setup validation rule
validate ( mixed $input ) : boolean Check input data

Method Details

__construct() public method

Setup validation rule
public __construct ( callable $callback )
$callback callable

validate() public method

Check input data
public validate ( mixed $input ) : boolean
$input mixed
return boolean

Property Details

$callback protected property

callback for check input
protected $callback