Total Complexity | 4 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | abstract class Node |
||
19 | { |
||
20 | private ?Node $parent = null; |
||
21 | |||
22 | 356 | public function setParent(Node $parent): void |
|
25 | } |
||
26 | |||
27 | 6 | public function getParent(): ?Node |
|
28 | { |
||
29 | 6 | return $this->parent; |
|
30 | } |
||
31 | |||
32 | 2 | public function getRoot(): Node |
|
35 | } |
||
36 | |||
37 | abstract public function getNativeValue(): mixed; |
||
38 | } |
||
39 |