| Total Complexity | 6 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 8 | trait HandlesRelation |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @return mixed |
||
| 12 | */ |
||
| 13 | public function relation() |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Finds a module this relation belongs to. |
||
| 20 | * |
||
| 21 | * @return null| |
||
| 22 | */ |
||
| 23 | public function relationModule(): ?Module |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param $relation |
||
| 32 | * @return mixed |
||
| 33 | */ |
||
| 34 | public function getForeignKey($relation) |
||
| 51 |