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