Coach   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 4
Bugs 0 Features 2
Metric Value
wmc 1
c 4
b 0
f 2
lcom 0
cbo 1
dl 0
loc 30
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A team() 0 4 1
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
}