Valdi\Validator\Contains

class Contains

Validator for strings containing a substring.

validateParameterCount($parameterAmount)

Throws an exception if the parameters don’t fulfill 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)

{@inheritdoc}

Parameters:
  • $value
  • $parameters
getInvalidDetails()

{@inheritdoc}