Total Complexity | 2 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | abstract class AbstractParametrizedValidator implements ValidatorInterface |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * Throws an exception if the parameters don't fulfill the expected |
||
24 | * parameter count. |
||
25 | * |
||
26 | * @param string $name the name of the validator |
||
27 | * @param integer $parameterAmount the amount of expected parameters |
||
28 | * @param string[] $parameters the parameters |
||
29 | * |
||
30 | * @throws ValidationException - thrown if the amount of parameters isn't the expected one |
||
31 | */ |
||
32 | 15 | protected function validateParameterCount($name, $parameterAmount, array $parameters) |
|
40 |