PHP Class Bluz\Validator\Rule\ArrayInput

Inheritance: extends AbstractRule
Show file Open project: bluzphp/framework

Protected Properties

Property Type Description
$callback Callback for check input array
$template error template

Public Methods

Method Description
__construct ( callable $callback ) Setup validation rule
validate ( string $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 ( string $input ) : boolean
$input string
return boolean

Property Details

$callback protected property

Callback for check input array
protected $callback

$template protected property

error template
protected $template