Test Setup Failed
Pull Request — master (#24)
by
unknown
04:09
created

Match   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 12
c 1
b 0
f 0
dl 0
loc 43
rs 10
wmc 10
1
<?php
2
3
namespace App;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
class Match extends Model
0 ignored issues
show
Bug introduced by
A parse error occurred: Syntax error, unexpected T_MATCH, expecting T_STRING on line 7 at column 6
Loading history...
8
{
9
10
    protected $fillable = array('name', 'start_date', 'end_date', 'association_id',  'series_id', 'division_id', 'schedule_id', 'round_id', 'venue_id', 'home_team_id', 'away_team_id');
11
12
    public function association() {
13
        return $this->belongsTo('App\Association');
14
    }
15
16
    public function series() {
17
        return $this->belongsTo('App\Series');
18
    }
19
20
    public function division() {
21
        return $this->belongsTo('App\Division');
22
    }
23
24
    public function schedule() {
25
        return $this->belongsTo('App\Schedule');
26
    }
27
28
    public function round() {
29
        return $this->belongsTo('App\Round');
30
    }
31
32
    public function venue() {
33
        return $this->belongsTo('App\Venue');
34
    }
35
36
    public function homeTeam() {
37
        return $this->belongsTo('App\Team', 'home_team_id');
38
    }
39
40
    public function awayTeam() {
41
        return $this->belongsTo('App\Team', 'away_team_id');
42
    }
43
44
    public function result() {
45
        return $this->hasOne('App\Result');
46
    }
47
48
    public function resultSubmissions() {
49
        return $this->hasMany('App\ResultSubmission');
50
    }
51
}
52