PHP Class Bluz\Validator\Rule\AbstractRule

Author: Anton Shevchuk
Afficher le fichier Open project: bluzphp/framework

Protected Properties

Свойство Type Description
$template string Template for error output - {{name}} - name of field - {{input}} - input value

Méthodes publiques

Méthode Description
__invoke ( mixed $input ) : boolean Invoke
__toString ( ) : string Cast to string
assert ( string $input ) : boolean Assert
getTemplate ( ) : string Get error template
validate ( mixed $input ) : boolean Check input data

Method Details

__invoke() public méthode

Invoke
public __invoke ( mixed $input ) : boolean
$input mixed
Résultat boolean

__toString() public méthode

Cast to string
public __toString ( ) : string
Résultat string

assert() public méthode

Assert
public assert ( string $input ) : boolean
$input string
Résultat boolean

getTemplate() public méthode

Get error template
public getTemplate ( ) : string
Résultat string

validate() abstract public méthode

Check input data
abstract public validate ( mixed $input ) : boolean
$input mixed
Résultat boolean

Property Details

$template protected_oe property

Template for error output - {{name}} - name of field - {{input}} - input value
protected string $template
Résultat string