Valdi\Validator\AbstractParametrizedValidator

class Valdi\Validator\AbstractParametrizedValidator
Validator for parametrized validators.
validateParameterCount()

Throws an exception if the parameters don’t fulfill the expected parameter count.

Parameters:
  • $name (string) – the name of the validator
  • $parameterAmount (integer) – the amount of expected parameters
  • $parameters (string[]) – the parameters
Throws:

ValidationException $ thrown if the amount of parameters isn’t the expected one