Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | 5 | public function __get($variable) |
|
27 | { |
||
28 | if (in_array($variable, $this->parametersList)) { |
||
29 | 1 | if (isset($this->parametersValues[$variable])) { |
|
30 | return $this->parametersValues[$variable]; |
||
31 | 1 | } |
|
32 | 1 | ||
33 | 1 | return null; |
|
34 | } |
||
35 | |||
36 | throw new InvalidArgumentException( |
||
37 | 65 | "Unknown configuration property " . |
|
38 | get_called_class() . |
||
39 | 65 | '->' . |
|
40 | 64 | $variable |
|
41 | ); |
||
85 |