@@ -114,6 +114,9 @@ discard block |
||
| 114 | 114 | return [$target, $direction]; |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | + /** |
|
| 118 | + * @param Node $node |
|
| 119 | + */ |
|
| 117 | 120 | private static function getPrevious(?Node $node = null): ?Node |
| 118 | 121 | { |
| 119 | 122 | $previous = $node instanceof Node ? $node->previous() : null; |
@@ -125,6 +128,9 @@ discard block |
||
| 125 | 128 | return $previous; |
| 126 | 129 | } |
| 127 | 130 | |
| 131 | + /** |
|
| 132 | + * @param Node $node |
|
| 133 | + */ |
|
| 128 | 134 | private static function getNext(?Node $node = null): ?Node |
| 129 | 135 | { |
| 130 | 136 | $next = $node instanceof Node ? $node->next() : null; |