Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
38 | 3 | public function setParameter($params) |
|
39 | { |
||
40 | 3 | if ( $params !== null && ! $params instanceof ValidatableInterface) { |
|
41 | 1 | throw new InvalidArgumentException('VAL-009: Provided parameter does not implement ValidatableInterface'); |
|
42 | } |
||
43 | |||
44 | 3 | return parent::setParameter($params); |
|
45 | } |
||
46 | |||
59 |