Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 71.43% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class TournamentLevel extends Model |
||
9 | { |
||
10 | |||
11 | public $timestamps = false; |
||
12 | protected $table = 'tournamentLevel'; |
||
13 | protected $fillable = [ |
||
14 | 'id', |
||
15 | 'name', |
||
16 | ]; |
||
17 | |||
18 | public static function getAllPlucked() |
||
22 | 6 | }); |
|
23 | } |
||
24 | |||
25 | 4 | public function getNameAttribute($name) |
|
26 | { |
||
27 | 4 | return trans($name); |
|
28 | } |
||
29 | |||
30 | /** |
||
31 | * @return \Illuminate\Database\Eloquent\Relations\HasMany |
||
32 | */ |
||
33 | public function tournaments() |
||
36 | } |
||
37 | } |