Validator\Contains¶
-
class
Contains
¶ Validator for strings containing a substring.
-
validateParameterCount
($parameterAmount)¶ Throws an exception if the parameters don’t fullfill the expected parameter count.
Parameters: - $parameterAmount (integer) – the amount of expected parameters
-
adjustCaseInsensitive
($value, $parameters)¶ Adjusts value and parameters to be case insensitive if the second parameter says so or is not given.
Parameters: - $value (mixed) – the value to validate
- $parameters (array) – the other parameters the validator need
-
isValid
($value, $parameters)¶ -
Parameters: - $value –
- $parameters –
-
getInvalidDetails
()¶
-