메소드 |
설명 |
|
__call ( string $ruleName, array $arguments ) : Validator |
Magic call for create new rule |
|
__callStatic ( string $ruleName, array $arguments ) : Validator |
Magic static call for create instance of Validator |
|
__invoke ( mixed $input ) : boolean |
Callable |
|
__toString ( ) : string |
Cast to string |
|
assert ( mixed $input ) : boolean |
Assert |
|
create ( ) : Validator |
Create new instance if Validator |
|
getError ( ) : false | string |
Get error message |
|
getErrors ( ) : string[] |
Get all errors |
|
getInput ( ) : string |
Get input data |
|
getName ( ) : string |
Get field Title |
|
isRequired ( ) : boolean |
Get required flag |
|
setError ( string $message ) : Validator |
Set error template for complex rule |
|
setName ( string $name ) : Validator |
Set field Title |
|
validate ( mixed $input, boolean $all = false ) : boolean |
Validate chain of rules |
|