protected function validateParameterCount($name, $parameterAmount, array $parameters) {
        if (count($parameters) !== $parameterAmount) {
            throw new ValidationException('"'.$name.'" expects '.$parameterAmount.' parameter.');
        }
    }
protected function validateParameterCount($name, $parameterAmount, array $parameters) {
        if (count($parameters) !== $parameterAmount) {
            throw new ValidationException('"'.$name.'" expects '.$parameterAmount.' parameter.');
        }
    }
protected function validateParameterCount ( $ name , $ parameterAmount , array $ parameters ) { if ( count ( $ parameters ) !== $ parameterAmount ) { throw new ValidationException ( '"' . $ name . '" expects ' . $ parameterAmount . ' parameter.' ) ; } }
Throws an exception if the parameters don't fulfill the expected
parameter count.

@param string $name
the name of the validator
@param integer $parameterAmount
the amount of expected parameters
@param string[] $parameters
the parameters

@throws ValidationException
thrown if the amount of parameters isn't the expected one
Throws an exception if the parameters don t fulfill the expected parameter count .