/** * Copys all data from a given address. * * @param MShop_Common_Item_Address_Interface $address New address */ public function copyFrom(MShop_Common_Item_Address_Interface $address) { $this->setAddressId($address->getId()); $this->setCompany($address->getCompany()); $this->setVatID($address->getVatID()); $this->setSalutation($address->getSalutation()); $this->setTitle($address->getTitle()); $this->setFirstname($address->getFirstname()); $this->setLastname($address->getLastname()); $this->setAddress1($address->getAddress1()); $this->setAddress2($address->getAddress2()); $this->setAddress3($address->getAddress3()); $this->setPostal($address->getPostal()); $this->setCity($address->getCity()); $this->setState($address->getState()); $this->setCountryId($address->getCountryId()); $this->setTelephone($address->getTelephone()); $this->setEmail($address->getEmail()); $this->setTelefax($address->getTelefax()); $this->setWebsite($address->getWebsite()); $this->setLanguageId($address->getLanguageId()); $this->setFlag($address->getFlag()); $this->setModified(); }