/** * @param \Magento\Quote\Api\Data\AddressInterface $address * @return $this */ public function addAddress(\Magento\Quote\Api\Data\AddressInterface $address) { $address->setQuote($this); if (!$address->getId()) { $this->getAddressesCollection()->addItem($address); } return $this; }