| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function transform(ProductVariantInterface $productVariant): Price |
||
| 30 | { |
||
| 31 | $channelPricing = $productVariant->getChannelPricingForChannel($this->channelProvider->provide()); |
||
| 32 | $price = (float) $channelPricing->getPrice(); |
||
| 33 | // $originalPrice = (float) $channelPricing->getOriginalPrice(); |
||
| 34 | |||
| 35 | return new Price( |
||
| 36 | $price, |
||
| 37 | $price, |
||
| 38 | $price, |
||
| 39 | $price, |
||
| 40 | $price, |
||
| 41 | $price, |
||
| 42 | $price, |
||
| 43 | $price, |
||
| 44 | $price, |
||
| 45 | null, |
||
| 46 | null, |
||
| 47 | null, |
||
| 48 | $price, |
||
| 49 | $price, |
||
| 50 | $price |
||
| 51 | ); |
||
| 52 | } |
||
| 53 | } |
||
| 54 |