Conditions | 3 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
30 | protected function checkParameters($parameters) { |
||
31 | if (count($parameters) < 3) { |
||
32 | throw new ValidationException('"or" expects at least 3 parameters.'); |
||
33 | } |
||
34 | if (!($parameters[0] instanceof Validator)) { |
||
35 | throw new ValidationException('"or" expects the first parameter to be a Validator or a subclass of it.'); |
||
36 | } |
||
37 | } |
||
38 | |||
58 |