Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function handleAddProductToCart(AddProductToCart $command): void |
||
34 | { |
||
35 | /** @var CartContract $cart */ |
||
36 | $cart = $this->cartRepository->load($command->getCartId()); |
||
37 | |||
38 | $cart->addProductToCart($command->getProductCode(), $command->getQuantity(), $command->getPrice(), $command->getProductCurrencyCode()); |
||
39 | |||
40 | $this->cartRepository->save($cart); |
||
41 | } |
||
42 | } |
||
43 |