Completed
Push — master ( 543190...5d04a1 )
by Vincenzo
02:30
created

League   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A match_days() 0 4 1
1
<?php
2
3
namespace App\Lib\DsManager\Models\Orm;
4
5
/**
6
 * Class League
7
 * @package App\Lib\DsManager\Models\Orm
8
 */
9
class League extends DsManagerOrm
10
{
11
    /**
12
     * @var string
13
     */
14
    protected $table = 'leagues';
15
16
    /**
17
     * @var array
18
     */
19
    protected $fillable = [
20
        'name'
21
    ];
22
23
    /**
24
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
25
     */
26
    public function match_days()
27
    {
28
        return $this->hasMany(MatchDay::class);
29
    }
30
}