Class StartsWith
Check if the input is starts with specified string
-
Wei\Base
-
Wei\Validator\BaseValidator
-
Wei\Validator\StartsWith
Methods summary
public
boolean
|
#
__invoke( mixed $input, $findMe = null, $case = 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
|
$notFoundMessage
|
#
'%name% must start with "%findMe%"'
|
protected
string
|
$negativeMessage
The common message for negative validator
The common message for negative validator
|
#
'%name% must not start with "%findMe%"'
|
protected
|
$findMe
|
|
protected
boolean
|
$case
|
|