/** * @param \Generated\Shared\Transfer\QuoteTransfer $quoteTransfer * @param \Generated\Shared\Transfer\CustomerTransfer $customer * * @return void */ protected function persistAddresses(QuoteTransfer $quoteTransfer, CustomerTransfer $customer) { $this->processCustomerAddress($quoteTransfer->getShippingAddress(), $customer); if ($quoteTransfer->getBillingSameAsShipping() !== true) { $this->processCustomerAddress($quoteTransfer->getBillingAddress(), $customer); } }