| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class Groups extends AbstractRepository |
||
| 20 | { |
||
| 21 | |||
| 22 | public const API_ROOT = "groups"; |
||
| 23 | |||
| 24 | public const GROUP_RELATION_MEMBERSHIPS = "memberships"; |
||
| 25 | public const GROUP_RELATION_USERS = "users"; |
||
| 26 | |||
| 27 | protected static array $relation_class_map = [ |
||
| 28 | self::GROUP_RELATION_MEMBERSHIPS => Membership::class, |
||
| 29 | self::GROUP_RELATION_USERS => User::class |
||
| 30 | ]; |
||
| 31 | |||
| 32 | public function getModelClass(): string |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getUsers(Group $group): Collection |
||
| 44 |