Class MinLength
Check if the length (or size) of input is greater than specified length
-
Wei\Base
-
Wei\Validator\BaseValidator
-
Wei\Validator\Length
-
Wei\Validator\MinLength
Methods summary
public
boolean
|
#
__invoke( mixed $input, $min = null, $__ = 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
Overrides
|
Methods inherited from Wei\Validator\BaseValidator
addError(),
getErrors(),
getFirstMessage(),
getJoinedMessage(),
getMessages(),
getName(),
hasError(),
isString(),
isValid(),
loadTranslationMessages(),
setMessages(),
setName(),
storeOption()
|
Properties summary
protected
string
|
$tooShortMessage
|
#
'%name% must have a length greater than %min%'
|
protected
string
|
$tooFewMessage
|
#
'%name% must contain at least %min% item(s)'
|
protected
|
$min
|
|