PHP Class Bluz\Validator\Rule\Regexp

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

Protected Properties

Property Type Description
$regexp regular expression for check string
$template error template

Public Methods

Method Description
__construct ( string $regexp ) Check string by regular expression
validate ( mixed $input ) : boolean Check string by regular expression

Method Details

__construct() public method

Check string by regular expression
public __construct ( string $regexp )
$regexp string

validate() public method

Check string by regular expression
public validate ( mixed $input ) : boolean
$input mixed
return boolean

Property Details

$regexp protected property

regular expression for check string
protected $regexp

$template protected property

error template
protected $template