src/Sulu/Bundle/Sales/CoreBundle/Entity/BaseOrderAddress.php
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->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());
    }
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->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());
    }
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 -> 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 ( ) ) ; }
Copies address data from one order-address-interface to another

@param OrderAddressInterface $from
@param OrderAddressInterface $to
Copies address data from one order - address - interface to another