| Total Complexity | 3 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class RootRetrieverHelper |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Get the root of the node. |
||
| 21 | * |
||
| 22 | * @param NodeInterface $node The node to search on. |
||
| 23 | * |
||
| 24 | * @return PhpFileModelInterface|null The root if it is found, else null. |
||
| 25 | */ |
||
| 26 | public static function getRoot(NodeInterface $node): ?PhpFileModelInterface |
||
| 38 |