Skip to content

Commit e8710f9

Browse files
committed
Moves getTree to interface
1 parent 42e511b commit e8710f9

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

src/NestedSetInterface.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,4 +114,12 @@ public function moveSubTreeAfter(Node $target, Node $node);
114114
*/
115115
public function getNodeAtPosition($left);
116116

117+
/**
118+
* Fetches the entire tree.
119+
*
120+
* @return array
121+
* The tree.
122+
*/
123+
public function getTree();
124+
117125
}

src/Node.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Node {
4343
protected $depth;
4444

4545
/**
46-
* node constructor.
46+
* Node constructor.
4747
*
4848
* @param int|string $id
4949
* The ID.

src/Storage/DbalNestedSet.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,7 @@ public function findAncestors(Node $node) {
145145
}
146146

147147
/**
148-
* Fetches the entire tree.
149-
*
150-
* @return array
151-
* The tree.
148+
* {@inheritdoc}
152149
*/
153150
public function getTree() {
154151
$tree = [];

0 commit comments

Comments
 (0)