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

MatchDay::matches()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
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
 * Class MatchDay
7
 * @package App\Lib\DsManager\Models\Orm
8
 */
9
class MatchDay extends DsManagerOrm
10
{
11
12
    /**
13
     * @var string
14
     */
15
    protected $table = 'league_match_days';
16
17
    /**
18
     * @var array
19
     */
20
    protected $fillable = [
21
        'league_id',
22
        'day'
23
    ];
24
25
    /**
26
     * @return \Illuminate\Database\Eloquent\Relations\HasOne
27
     */
28
    public function league()
29
    {
30
        return $this->hasOne(League::class);
31
    }
32
33
    /**
34
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
35
     */
36
    public function matches()
37
    {
38
        return $this->hasMany(Match::class);
39
    }
40
}