Completed
Push — master ( 5d04a1...0cf74a )
by Vincenzo
02:49
created

LeagueRound   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A league() 0 4 1
A matches() 0 4 1
1
<?php
2
3
namespace App\Lib\DsManager\Models\Orm;
4
5
/**
6
 * Class LeagueRound
7
 * @package App\Lib\DsManager\Models\Orm
8
 */
9
class LeagueRound extends DsManagerOrm
10
{
11
12
    /**
13
     * @var string
14
     */
15
    protected $table = 'league_rounds';
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
}