| Total Complexity | 1 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 13 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | trait MetadataRelationsTrait |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var array|string[]|null a cache for the relationship names |
||
| 24 | */ |
||
| 25 | private static $relationNames = null; |
||
| 26 | /** |
||
| 27 | * Get model's relationships. |
||
| 28 | * |
||
| 29 | * @throws InvalidOperationException |
||
| 30 | * @throws \ReflectionException |
||
| 31 | * @return array |
||
| 32 | */ |
||
| 33 | public function getRelationships() |
||
| 38 |