| 1 | <?php |
||
| 20 | final class CustomerOrderAddressesSaver implements OrderAddressesSaverInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var CustomerAddressAdderInterface |
||
| 24 | */ |
||
| 25 | private $addressAdder; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param CustomerAddressAdderInterface $addressAdder |
||
| 29 | */ |
||
| 30 | public function __construct(CustomerAddressAdderInterface $addressAdder) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param OrderInterface $order |
||
| 37 | */ |
||
| 38 | public function saveAddresses(OrderInterface $order): void |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param CustomerInterface $customer |
||
| 52 | * @param AddressInterface|null $address |
||
| 53 | */ |
||
| 54 | private function addAddress(CustomerInterface $customer, ?AddressInterface $address): void |
||
| 60 | } |
||
| 61 |