Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | trait HasChildrenTrait |
||
17 | { |
||
18 | /** |
||
19 | * @var NodeInterface[] |
||
20 | */ |
||
21 | private $children = []; |
||
22 | |||
23 | /** |
||
24 | * @param NodeInterface $child |
||
25 | */ |
||
26 | 6 | public function addChild(NodeInterface $child): void |
|
27 | { |
||
28 | 6 | $this->children[] = $child; |
|
29 | 6 | } |
|
30 | |||
31 | /** |
||
32 | * @return string |
||
33 | */ |
||
34 | 14 | protected function renderChildren(): string |
|
42 | } |
||
43 | } |
||
44 |