Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
15 | public function transform(Item $item) |
||
16 | { |
||
17 | return array_filter([ |
||
18 | '$item_id' => $item->getId(), |
||
19 | '$product_title' => $item->getTitle(), |
||
20 | '$price' => $item->getPrice()->getMicros(), |
||
21 | '$currency_code' => $item->getPrice()->getCurrency()->getCode(), |
||
22 | '$quantity' => $item->getQuantity(), |
||
23 | '$upc' => $item->getUpc(), |
||
24 | '$sku' => $item->getSku(), |
||
25 | '$brand' => $item->getBrand(), |
||
26 | '$manufacturer' => $item->getManufacturer(), |
||
27 | '$category' => $item->getCategory(), |
||
28 | '$tags' => $item->getTags(), |
||
29 | '$color' => $item->getColor() |
||
30 | ]); |
||
31 | } |
||
32 | } |
||
33 |