| Total Complexity | 3 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | class RootRetrieverHelper |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * Get the root of the node. |
||
| 30 | * |
||
| 31 | * @param NodeInterface $parent The node to search in. |
||
| 32 | * |
||
| 33 | * @return PhpFileModelInterface|null The root if it is found, else null. |
||
| 34 | */ |
||
| 35 | public static function getRoot(NodeInterface $parent): ?PhpFileModelInterface |
||
| 46 |