| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function transform($value) |
||
| 19 | { |
||
| 20 | $attachments = []; |
||
| 21 | foreach ($value->getAttachments() as $attachment) { |
||
| 22 | $attachments[] = $attachment->getRealPath(); |
||
| 23 | } |
||
| 24 | |||
| 25 | return [ |
||
| 26 | 'case_id' => $value->getCaseId(), |
||
| 27 | 'content' => $value->getContent(), |
||
| 28 | 'content_html' => $value->getContentHtml(), |
||
| 29 | 'staff_id' => $value->getStaffId(), |
||
| 30 | 'user_id' => $value->getUserId(), |
||
| 31 | 'attachments' => $attachments, |
||
| 32 | ]; |
||
| 33 | } |
||
| 34 | |||
| 44 |