| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 29 | 9 | public function get($nodeId, bool $nested = false): array |
|
| 30 | { |
||
| 31 | 9 | $result = $this->getManipulator() |
|
| 32 | 9 | ->getDescendants($nodeId, $this->excludeFirstNLevel, $this->limitDepth, $this->excludeBranch); |
|
| 33 | |||
| 34 | 9 | return $nested ? |
|
| 35 | 9 | Utilities::flatToNested($result, $this->getManipulator()->getOptions()->getLevelColumnName()) : $result; |
|
| 36 | } |
||
| 73 |