Valdi\Validator\Contains¶
-
class
Valdi\Validator\
Contains
¶ - Validator for strings containing a substring.
-
validateParameterCount
()¶ Throws an exception if the parameters don’t fulfill the expected parameter count.
Parameters: - $parameterAmount (integer) – the amount of expected parameters
Throws: ValidationException $ thrown if less than one parameter is given
-
adjustCaseInsensitive
()¶ 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
()¶
-
getInvalidDetails
()¶
-