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