Conditions | 2 |
Paths | 2 |
Total Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Tests | 15 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
20 | 1 | public function exportContextData() |
|
21 | { |
||
22 | 1 | $dataWrapper = $this->getDataWrapper(); |
|
23 | |||
24 | 1 | $items = []; |
|
25 | 1 | foreach ($dataWrapper->getItemCollection() as $item) { |
|
26 | 1 | $items[] = [ |
|
27 | 1 | 'reason' => $item->getReason(), |
|
28 | 1 | 'reason_detail' => $item->getReasonDetail(), |
|
29 | 1 | 'venture_order_item_id' => $item->getVentureOrderItemId(), |
|
30 | 1 | 'order_item_id' => $item->getOrderItemId() |
|
31 | 1 | ]; |
|
32 | 1 | } |
|
33 | |||
34 | 1 | return $this->prepareExport([ |
|
35 | 1 | 'venture_order_nr' => $dataWrapper->getVentureOrderNr(), |
|
36 | 1 | 'order_nr' => $dataWrapper->getOrderNr(), |
|
37 | 'item_collection' => $items |
||
38 | 1 | ]); |
|
39 | } |
||
40 | } |
||
41 |