| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function map(array $rows) |
||
| 22 | { |
||
| 23 | $fieldNotes = []; |
||
| 24 | |||
| 25 | foreach ($rows as $row) { |
||
| 26 | $fieldNote = new FieldNote(); |
||
| 27 | $fieldNote->waypoint = $row[0]; |
||
| 28 | $fieldNote->noticedAt = $row[1]; |
||
| 29 | $fieldNote->logType = $row[2]; |
||
| 30 | $fieldNote->notice = $row[3]; |
||
| 31 | |||
| 32 | $fieldNotes[] = $fieldNote; |
||
| 33 | } |
||
| 34 | |||
| 35 | return $fieldNotes; |
||
| 36 | } |
||
| 37 | } |
||
| 38 |