| Total Complexity | 6 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | trait NodeTrait |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Get Node for the given entity. Null if entity does not exists. Automatically |
||
| 19 | * register entity claims. |
||
| 20 | * |
||
| 21 | * @param object $entity |
||
| 22 | * @param int $claim |
||
| 23 | * @return Node|null |
||
| 24 | */ |
||
| 25 | protected function getNode($entity, int $claim = 0): ?Node |
||
| 52 | } |
||
| 53 | } |