| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function create(OrderInterface $cart): TotalsView |
||
| 22 | { |
||
| 23 | /** @var TotalsView $totalsView */ |
||
| 24 | $totalsView = new $this->totalsViewClass(); |
||
| 25 | |||
| 26 | $totalsView->promotion = $cart->getOrderPromotionTotal(); |
||
| 27 | $totalsView->total = $cart->getTotal(); |
||
| 28 | $totalsView->items = $cart->getItemsTotal(); |
||
| 29 | $totalsView->shipping = $cart->getShippingTotal(); |
||
| 30 | $totalsView->taxes = $cart->getTaxTotal(); |
||
| 31 | |||
| 32 | return $totalsView; |
||
| 33 | } |
||
| 34 | } |
||
| 35 |