Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
51 | public function __set($variable, $value) |
||
52 | { |
||
53 | 38 | if (in_array($variable, $this->parametersList)) { |
|
54 | $this->parametersValues[$variable] = $value; |
||
55 | 38 | ||
56 | 38 | return $this; |
|
57 | } |
||
58 | |||
59 | 38 | throw new InvalidArgumentException( |
|
60 | 38 | "Unknown configuration property " . |
|
61 | get_called_class() . |
||
62 | 11 | '->' . |
|
63 | $variable |
||
64 | 11 | ); |
|
85 |