Total Complexity | 10 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | abstract class AbstractNode implements Node |
||
11 | { |
||
12 | protected ?Node $parent = null; |
||
13 | |||
14 | /** |
||
15 | * Abstract node. |
||
16 | * |
||
17 | * @param Node|null $parent |
||
18 | */ |
||
19 | public function __construct(?Node $parent = null) |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @inheritDoc |
||
26 | */ |
||
27 | public function getParent(): ?Node |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @inheritDoc |
||
34 | */ |
||
35 | public function setParent(?Node $node): Node |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @inheritDoc |
||
44 | */ |
||
45 | public function hasParent($parent = null, bool $recursive = false): bool |
||
64 |