| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | 6 | public function __call(string $name, array $args = []): mixed |
|
| 27 | { |
||
| 28 | 6 | $property = "_{$name}"; |
|
| 29 | |||
| 30 | 6 | if (property_exists($this, $property)) { |
|
| 31 | 4 | return $this->{$property}; |
|
| 32 | } |
||
| 33 | |||
| 34 | 2 | if (isset($this->_extraArgs[$name])) { |
|
| 35 | 2 | return $this->_extraArgs[$name]; |
|
| 36 | } |
||
| 37 | |||
| 38 | 1 | return false; |
|
| 39 | } |
||
| 56 | } |