| Total Complexity | 3 | 
| Total Lines | 30 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 7 | class Group extends Model  | 
            ||
| 8 | { | 
            ||
| 9 | /**  | 
            ||
| 10 | * Get students of this group.  | 
            ||
| 11 | *  | 
            ||
| 12 | * @return \Illuminate\Database\Eloquent\Relations\HasMany  | 
            ||
| 13 | */  | 
            ||
| 14 | public function memberships()  | 
            ||
| 15 |     { | 
            ||
| 16 | return $this->hasMany(Membership::class);  | 
            ||
| 17 | }  | 
            ||
| 18 | |||
| 19 | /**  | 
            ||
| 20 | * Get the course of this group.  | 
            ||
| 21 | *  | 
            ||
| 22 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo  | 
            ||
| 23 | */  | 
            ||
| 24 | public function course()  | 
            ||
| 27 | }  | 
            ||
| 28 | |||
| 29 | /**  | 
            ||
| 30 | * Get invitations of this group.  | 
            ||
| 31 | *  | 
            ||
| 32 | * @return \Illuminate\Database\Eloquent\Relations\HasMany  | 
            ||
| 33 | */  | 
            ||
| 34 | public function invitations()  | 
            ||
| 37 | }  | 
            ||
| 38 | }  | 
            ||
| 39 |