Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
15 | public function get(array $matchInfos): array |
||
16 | { |
||
17 | $resultGames = []; |
||
18 | foreach ($matchInfos as $matchInfo) { |
||
19 | $homeTeam = $matchInfo['home_team']; |
||
20 | $awayTeam = $matchInfo['away_team']; |
||
21 | |||
22 | $resultGames[] = new GameResult( |
||
23 | $homeTeam['country'], |
||
24 | $awayTeam['country'], |
||
25 | $this->getGoals($homeTeam), |
||
26 | $this->getGoals($awayTeam) |
||
27 | ); |
||
28 | } |
||
29 | return $resultGames; |
||
30 | } |
||
44 | } |