Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | abstract class AbstractNode implements NodeInterface |
||
14 | { |
||
15 | /** |
||
16 | * @var null|\LogicTree\Node\CombineInterface |
||
17 | */ |
||
18 | private $parent; |
||
19 | |||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | public function getParent(): ?CombineInterface |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | public function setParent(?CombineInterface $combine): NodeInterface |
||
32 | { |
||
33 | $this->parent = $combine; |
||
34 | |||
35 | return $this; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function hasParent(): bool |
||
44 | } |
||
45 | } |
||
46 |