| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function saveAddresses(OrderInterface $order) |
||
| 39 | { |
||
| 40 | /** @var CustomerInterface $customer */ |
||
| 41 | $customer = $order->getCustomer(); |
||
| 42 | |||
| 43 | $shippingAddress = $order->getShippingAddress(); |
||
| 44 | $billingAddress = $order->getBillingAddress(); |
||
| 45 | |||
| 46 | $this->addressAdder->add($customer, clone $billingAddress); |
||
| 47 | $this->addressAdder->add($customer, clone $shippingAddress); |
||
| 48 | } |
||
| 49 | } |
||
| 50 |