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