original_string: protected function validateParameterCount($name, $parameterAmount, array $parameters) {
          if (count($parameters) !== $parameterAmount) {
              throw new ValidationException('"'.$name.'" expects '.$parameterAmount.' parameter.');
          }
      }
code: protected function validateParameterCount($name, $parameterAmount, array $parameters) {
          if (count($parameters) !== $parameterAmount) {
              throw new ValidationException('"'.$name.'" expects '.$parameterAmount.' parameter.');
          }
      }
code_tokens: protected function validateParameterCount ( $ name , $ parameterAmount , array $ parameters ) { if ( count ( $ parameters ) !== $ parameterAmount ) { throw new ValidationException ( '"' . $ name . '" expects ' . $ parameterAmount . ' parameter.' ) ; } }
docstring: 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
docstring_tokens: Throws an exception if the parameters don t fulfill the expected parameter count .