/** * Get bill address * * @return AddressInterface */ public function getBillAddress() { if ($this->billingAddress instanceof AddressInterface) { if ($this->billingAddress->getStreet()) { return $this->billingAddress; } } return $this->getAddress(); }
/** * Set the address * @param AddressInterface $address * @return self */ public function setAddress(AddressInterface $address) { $this->street = $address->getStreet(); return $this; }