Class AllOf
Check if the input is valid by all of the rules
-
Wei\Base
-
Wei\Validator\BaseValidator
-
Wei\Validator\SomeOf
-
Wei\Validator\AllOf
Methods summary
public
boolean
|
#
__invoke( mixed $input, array $rules = array(), integer|null $atLeast = null )
Check if the input is valid by all of the rules
Check if the input is valid by all of the rules
Parameters
- $input
- The input to be validated
- $rules
- An array that the key is validator rule name and the value is validator options
- $atLeast
- How many rules should be validated at least
Returns
boolean
Overrides
|
Methods inherited from Wei\Validator\BaseValidator
addError(),
getErrors(),
getFirstMessage(),
getJoinedMessage(),
getName(),
hasError(),
isString(),
isValid(),
loadTranslationMessages(),
setMessages(),
setName(),
storeOption()
|
Properties summary
protected
string
|
$atLeastMessage
|
#
'%name% must be passed by all of these rules'
|