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