| Total Complexity | 6 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class ControlNode |
||
| 17 | { |
||
| 18 | protected ?FileNode $node = null; |
||
| 19 | protected ?AControl $control = null; |
||
| 20 | /** @var ControlNode[] */ |
||
| 21 | protected array $subNodes = []; |
||
| 22 | |||
| 23 | 6 | public function setNode(?FileNode $node = null): self |
|
| 27 | } |
||
| 28 | |||
| 29 | 3 | public function getNode(): ?FileNode |
|
| 30 | { |
||
| 31 | 3 | return $this->node; |
|
| 32 | } |
||
| 33 | |||
| 34 | 6 | public function setControl(?AControl $control = null): self |
|
| 35 | { |
||
| 36 | 6 | $this->control = $control; |
|
| 37 | 6 | return $this; |
|
| 38 | } |
||
| 39 | |||
| 40 | 6 | public function getControl(): ?AControl |
|
| 41 | { |
||
| 42 | 6 | return $this->control; |
|
| 43 | } |
||
| 44 | |||
| 45 | 6 | public function addSubNode(ControlNode $node): self |
|
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return ControlNode[] |
||
| 53 | */ |
||
| 54 | 6 | public function getSubNodes(): array |
|
| 57 | } |
||
| 58 | } |
||
| 59 |