/**
  * Set delivery address information
  *
  * @param Address $address
  */
 public function setDeliveryAddressInfo(Address $address)
 {
     $this->setDeliveryAddress($address->getAddress());
     $this->setDeliveryPostalCode($address->getPostalCode());
     $this->setDeliveryCity($address->getCity());
     $this->setDeliveryState($address->getState());
     $this->setDeliveryCountry($address->getCountry());
 }
Example #2
0
 /**
  * Set address information
  *
  * @param Address $address
  */
 public function setAddressInfo(Address $address)
 {
     $this->setAddress($address->getAddress());
     $this->setPostalCode($address->getPostalCode());
     $this->setCity($address->getCity());
     if (!is_null($address->getState())) {
         $this->setState($address->getState());
     }
     $this->setCountry($address->getCountry());
 }