Conditions | 3 |
Paths | 3 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 9 |
Ratio | 100 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
13 | 5 | public function __isset(string $name) { |
|
14 | switch ($name) { |
||
15 | 5 | case 'nextElementSibling' : |
|
16 | 2 | return $this->getNextElementSibling() !== NULL; |
|
17 | 3 | case 'previousElementSibling' : |
|
18 | 2 | return $this->getPreviousElementSibling() !== NULL; |
|
19 | } |
||
20 | 1 | return isset($this->$name); |
|
21 | } |
||
22 | |||
73 | } |