| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function transform(Match $match) |
||
| 24 | { |
||
| 25 | return [ |
||
| 26 | 'id' => $match->id, |
||
|
|
|||
| 27 | 'round' => $match->round, |
||
| 28 | 'homeTeam' => $match->homeTournamentTeamId, |
||
| 29 | 'homeTeamId' => $match->homeTournamentTeamId, |
||
| 30 | 'awayTeam' => $match->awayTournamentTeamId, |
||
| 31 | 'awayTeamId' => $match->awayTournamentTeamId, |
||
| 32 | 'homeScore' => $match->homeScore, |
||
| 33 | 'homePenaltyScore' => $match->homePenaltyScore, |
||
| 34 | 'awayScore' => $match->awayScore, |
||
| 35 | 'awayPenaltyScore' => $match->awayPenaltyScore, |
||
| 36 | 'tournamentId' => $match->tournamentId, |
||
| 37 | 'status' => $match->status, |
||
| 38 | 'gameType' => $match->gameType, |
||
| 39 | 'resultType' => $match->resultType |
||
| 40 | ]; |
||
| 41 | } |
||
| 42 | } |
||
| 43 |
Since your code implements the magic getter
_get, this function will be called for any read access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.