Class Between
Check if the input is between the specified minimum and maximum value
-
Wei\Base
-
Wei\Validator\BaseValidator
-
Wei\Validator\Between
Methods summary
public
boolean
|
#
__invoke( mixed $input, $min = null, $max = null )
Validate the input value
Parameters
Returns
boolean
Overrides
|
protected
boolean
|
#
doValidate( mixed $input )
Validate the input value (ignore the $negative property)
Validate the input value (ignore the $negative property)
Parameters
- $input
- The input to be validated
Returns
boolean
|
Methods inherited from Wei\Validator\BaseValidator
addError(),
getErrors(),
getFirstMessage(),
getJoinedMessage(),
getMessages(),
getName(),
hasError(),
isString(),
isValid(),
loadTranslationMessages(),
setMessages(),
setName(),
storeOption()
|
Properties summary
protected
string
|
$betweenMessage
|
#
'%name% must between %min% and %max%'
|
protected
string
|
$negativeMessage
The common message for negative validator
The common message for negative validator
|
#
'%name% must not between %min% and %max%'
|
protected
|
$min
|
|
protected
|
$max
|
|