Example #1
0
 /**
  * Copies address data from one order-address-interface to another.
  *
  * @param OrderAddressInterface $from
  * @param OrderAddressInterface $to
  */
 public function copyValuesFromInterface(OrderAddressInterface $from, OrderAddressInterface $to)
 {
     // Account.
     $to->setAccountName($from->getAccountName());
     $to->setUid($from->getUid());
     // Contact.
     $to->setTitle($from->getTitle());
     $to->setSalutation($from->getSalutation());
     $to->setFormOfAddress($from->getFormOfAddress());
     $to->setFirstName($from->getFirstName());
     $to->setLastName($from->getLastName());
     $to->setEmail($from->getEmail());
     $to->setPhone($from->getPhone());
     $to->setPhoneMobile($from->getPhoneMobile());
     // Address.
     $to->setStreet($from->getStreet());
     $to->setNumber($from->getNumber());
     $to->setAddition($from->getAddition());
     $to->setZip($from->getZip());
     $to->setCity($from->getCity());
     $to->setState($from->getState());
     $to->setCountry($from->getCountry());
     $to->setContactAddress($from->getContactAddress());
     $to->setNote($from->getNote());
     // Postbox.
     $to->setPostboxCity($from->getPostboxCity());
     $to->setPostboxNumber($from->getPostboxNumber());
     $to->setPostboxPostcode($from->getPostboxPostcode());
 }