| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 35.7% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class Team extends \Xoco70\LaravelTournaments\Models\Team |
||
| 6 | { |
||
| 7 | 9 | protected static function boot() |
|
| 16 | } |
||
| 17 | 9 | }); |
|
| 18 | 9 | } |
|
| 19 | |||
| 20 | /** |
||
| 21 | * Get all Invitations that belongs to a team |
||
| 22 | * @return \Illuminate\Database\Eloquent\Relations\MorphMany |
||
| 23 | */ |
||
| 24 | public function invites() |
||
| 25 | { |
||
| 26 | return $this->morphMany(Invite::class, 'object'); |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Get all Invitations that belongs to a team |
||
| 31 | * @return \Illuminate\Database\Eloquent\Relations\MorphMany |
||
| 32 | */ |
||
| 33 | public function requests() |
||
| 34 | { |
||
| 35 | return $this->morphMany(Request::class, 'object'); |
||
| 36 | } |
||
| 37 | } |