| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 16 | 54 | public function __get($variable) |
|
| 17 | { |
||
| 18 | 54 | if (in_array($variable, $this->parametersList)) { |
|
| 19 | 53 | if (isset($this->parametersValues[$variable])) { |
|
| 20 | 53 | return $this->parametersValues[$variable]; |
|
| 21 | } |
||
| 22 | |||
| 23 | 5 | return null; |
|
| 24 | } |
||
| 25 | |||
| 26 | 1 | throw new InvalidArgumentException("Unknown configuration property " . get_called_class() . '->' .$variable); |
|
| 27 | } |
||
| 58 |