Common/Util/AddressUtil.php
static public function copy(AddressInterface $source, AddressInterface $target)
    {
        $target
            ->setCompany($source->getCompany())
            ->setGender($source->getGender())
            ->setFirstName($source->getFirstName())
            ->setLastName($source->getLastName())
            ->setStreet($source->getStreet())
            ->setComplement($source->getComplement())
            ->setSupplement($source->getSupplement())
            ->setExtra($source->getExtra())
            ->setCity($source->getCity())
            ->setPostalCode($source->getPostalCode())
            ->setCountry($source->getCountry())
            ->setState($source->getState())
            ->setDigicode1($source->getDigicode1())
            ->setDigicode2($source->getDigicode2())
            ->setIntercom($source->getIntercom())
            ->setLatitude($source->getLatitude())
            ->setLongitude($source->getLongitude());

        if (is_object($phone = $source->getPhone())) {
            $target->setPhone(clone $phone);
        } else {
            $target->setPhone($phone);
        }

        if (is_object($mobile = $source->getMobile())) {
            $target->setMobile(clone $mobile);
        } else {
            $target->setMobile($mobile);
        }
    }
static public function copy(AddressInterface $source, AddressInterface $target)
    {
        $target
            ->setCompany($source->getCompany())
            ->setGender($source->getGender())
            ->setFirstName($source->getFirstName())
            ->setLastName($source->getLastName())
            ->setStreet($source->getStreet())
            ->setComplement($source->getComplement())
            ->setSupplement($source->getSupplement())
            ->setExtra($source->getExtra())
            ->setCity($source->getCity())
            ->setPostalCode($source->getPostalCode())
            ->setCountry($source->getCountry())
            ->setState($source->getState())
            ->setDigicode1($source->getDigicode1())
            ->setDigicode2($source->getDigicode2())
            ->setIntercom($source->getIntercom())
            ->setLatitude($source->getLatitude())
            ->setLongitude($source->getLongitude());

        if (is_object($phone = $source->getPhone())) {
            $target->setPhone(clone $phone);
        } else {
            $target->setPhone($phone);
        }

        if (is_object($mobile = $source->getMobile())) {
            $target->setMobile(clone $mobile);
        } else {
            $target->setMobile($mobile);
        }
    }
Copy the source address data into the target address.

@param AddressInterface $source
@param AddressInterface $target