Coach::team()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 2
Metric Value
c 3
b 0
f 2
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace App\Lib\DsManager\Models\Orm;
4
5
6
/**
7
 * Class Coach
8
 * @package App\Lib\DsManager\Models\Orm
9
 */
10
class Coach extends DsManagerOrm
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $table = 'coaches';
16
17
    /**
18
     * @var array
19
     */
20
    protected $fillable = [
21
        'name',
22
        'surname',
23
        'age',
24
        'nationality',
25
        'skillAvg',
26
        'wageReq',
27
        'favouriteModule',
28
        'team_id'
29
    ];
30
31
    /**
32
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
33
     */
34
    public function team()
35
    {
36
        return $this->belongsTo(Team::class);
37
    }
38
39
}