1 | <?php |
||
9 | class Round extends Model |
||
10 | { |
||
11 | protected $table = 'round'; |
||
12 | public $timestamps = true; |
||
13 | protected $guarded = ['id']; |
||
14 | |||
15 | /** |
||
16 | * Check if Request contains tournamentSlug / Should Move to TreeRequest When Built |
||
17 | * @param $request |
||
18 | * @return bool |
||
19 | */ |
||
20 | public static function hasTournamentInRequest($request) |
||
24 | |||
25 | /** |
||
26 | * Check if Request contains championshipId / Should Move to TreeRequest When Built |
||
27 | * @param $request |
||
28 | * @return bool |
||
29 | */ |
||
30 | public static function hasChampionshipInRequest($request) |
||
34 | |||
35 | |||
36 | /** |
||
37 | * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
||
38 | */ |
||
39 | public function championship() |
||
43 | |||
44 | /** |
||
45 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
46 | */ |
||
47 | public function fights() |
||
51 | |||
52 | public function teams() |
||
56 | |||
57 | public function competitors() |
||
61 | |||
62 | |||
63 | /** |
||
64 | * @param Collection $rounds |
||
65 | * @param $settings |
||
66 | * @param Championship $championship |
||
67 | */ |
||
68 | public static function generateFights(Collection $rounds, $settings, Championship $championship = null) |
||
97 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.