| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function transform(Item $item) |
||
| 25 | { |
||
| 26 | return array_filter([ |
||
| 27 | '$item_id' => $item->getId(), |
||
| 28 | '$product_title' => $item->getTitle(), |
||
| 29 | '$price' => $this->amount($item->getPrice()), |
||
| 30 | '$currency_code' => $this->amount($item->getPrice()), |
||
| 31 | '$quantity' => $item->getQuantity(), |
||
| 32 | '$upc' => $item->getUpc(), |
||
| 33 | '$sku' => $item->getSku(), |
||
| 34 | '$brand' => $item->getBrand(), |
||
| 35 | '$manufacturer' => $item->getManufacturer(), |
||
| 36 | '$category' => $item->getCategory(), |
||
| 37 | '$tags' => $item->getTags(), |
||
| 38 | '$color' => $item->getColor() |
||
| 39 | ]); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |