Test Setup Failed
Push — master ( 0a8e7c...ce45b0 )
by Sam
04:25
created

TeamResult   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A schedule() 0 2 1
A match() 0 2 1
A team() 0 2 1
1
<?php
2
3
namespace App;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class TeamResult extends Model
8
{
9
    protected $fillable = array('schedule_id', 'match_id', 'team_id', 'points', 'win', 'loss', 'tie');
10
11
    public function schedule() {
12
        return $this->belongsTo('App\Schedule');
13
    }
14
15
    public function match() {
16
        return $this->belongsTo('App\Match');
17
    }
18
19
    public function team() {
20
        return $this->belongsTo('App\Team');
21
    }
22
}
23