Class SomeOf
Check if the input is valid by specified number of the rules
- Wei\Base
-
Wei\Validator\BaseValidator
-
Wei\Validator\SomeOf
public
boolean
|
|
protected
boolean
|
|
protected
|
|
public
array
|
addError(),
getErrors(),
getFirstMessage(),
getJoinedMessage(),
getName(),
hasError(),
isString(),
isValid(),
loadTranslationMessages(),
setMessages(),
setName(),
storeOption()
|
__call(),
__construct(),
__get(),
getOption(),
setOption()
|
t()
|
protected
string
|
$atLeastMessage
|
#
'%name% must be passed by at least %left% of %count% rules'
|
protected
array
|
$rules
The validator rules |
#
array()
|
protected
integer
|
$atLeast
How many rules should pass at least |
|
protected
boolean
|
$combineMessages
Whether combine messages into single one or not |
#
true
|
protected
string
|
$count
The passed rules number, using for message only |
|
protected
string
|
$left
The not passed rules number, using for message only |
|
protected
|
$validators
The invalid validators |
#
array()
|
$errors,
$name,
$negative,
$negativeMessage,
$notStringMessage,
$validator
|
$providers,
$wei
|
$t
|