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