Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | class ChildBottom extends AddStrategyAbstract |
||
10 | { |
||
11 | /** |
||
12 | * {@inheritdoc} |
||
13 | */ |
||
14 | protected function canCreateNewNode(NodeInfo $targetNode): void |
||
15 | { |
||
16 | } |
||
17 | |||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | 1 | protected function makeHole(NodeInfo $targetNode): void |
|
22 | { |
||
23 | 1 | $moveFromIndex = $targetNode->getRight() - 1; |
|
24 | 1 | $this->getManipulator()->moveLeftIndexes($moveFromIndex, 2, $targetNode->getScope()); |
|
25 | 1 | $this->getManipulator()->moveRightIndexes($moveFromIndex, 2, $targetNode->getScope()); |
|
26 | } |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | 1 | protected function createNewNodeNodeInfo(NodeInfo $targetNode): NodeInfo |
|
40 | ); |
||
41 | } |
||
42 | } |
||
43 |