1 | <?php |
||
9 | class MatchResult extends Match |
||
10 | { |
||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $fillable = [ |
||
15 | 'goal_home', |
||
16 | 'goal_away', |
||
17 | 'info', |
||
18 | 'simulated' |
||
19 | ]; |
||
20 | |||
21 | protected $hidden = [ |
||
22 | 'home_team_id', |
||
23 | 'away_team_id', |
||
24 | 'created_at', |
||
25 | 'updated_at' |
||
26 | ]; |
||
27 | |||
28 | /** |
||
29 | * @var array |
||
30 | */ |
||
31 | protected $casts = [ |
||
32 | 'info' => 'json', |
||
33 | 'simulated' => 'boolean' |
||
34 | ]; |
||
35 | |||
36 | public static function resolveAttributes(array $attributes, $matchId) |
||
52 | |||
53 | private static function addScorer($matchId, $teamId, $playerId) |
||
77 | |||
78 | public function scorers() |
||
88 | |||
89 | public function scopeComplete($query) |
||
93 | |||
94 | |||
95 | } |