| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function exportContextData() |
||
| 11 | { |
||
| 12 | $dataWrapper = $this->getDataWrapper(); |
||
| 13 | $simpleCollection = []; |
||
| 14 | |||
| 15 | foreach ($dataWrapper->getSimpleCollection() as $simple) { |
||
| 16 | $simpleCollection[] = [ |
||
| 17 | 'sku' => $simple->getSku(), |
||
| 18 | 'status' => $simple->getStatus() |
||
| 19 | ]; |
||
| 20 | } |
||
| 21 | |||
| 22 | return $this->prepareExport([ |
||
| 23 | 'sku' => $dataWrapper->getSku(), |
||
| 24 | 'status' => $dataWrapper->getStatus(), |
||
| 25 | 'simple_collection' => $simpleCollection |
||
| 26 | ]); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |