src/Sulu/Bundle/Sales/CoreBundle/Entity/BaseOrderAddress.php
public function toArray()
    {
        return array(
            // account
            'accountName' => $this->getAccountName(),
            'uid' => $this->getUid(),
            // contact
            'title' => $this->getTitle(),
            'salutation' => $this->getSalutation(),
            'firstName' => $this->getFirstName(),
            'lastName' => $this->getLastName(),
            'email' => $this->getEmail(),
            'phone' => $this->getPhone(),
            'phoneMobile' => $this->getPhoneMobile(),
            // address
            'street' => $this->getStreet(),
            'number' => $this->getNumber(),
            'addition' => $this->getAddition(),
            'zip' => $this->getZip(),
            'city' => $this->getCity(),
            'state' => $this->getState(),
            'country' => $this->getCountry(),
            'note' => $this->getNote(),
            'contactAddress' => $this->getContactAddress() ? array(
                'id' => $this->getContactAddress()->getId()
            ) : null,
            // postbox
            'postboxCity' => $this->getPostboxCity(),
            'postboxNumber' => $this->getPostboxNumber(),
            'postboxPostcode' => $this->getPostboxPostcode(),
        );
    }
public function toArray()
    {
        return array(
            // account
            'accountName' => $this->getAccountName(),
            'uid' => $this->getUid(),
            // contact
            'title' => $this->getTitle(),
            'salutation' => $this->getSalutation(),
            'firstName' => $this->getFirstName(),
            'lastName' => $this->getLastName(),
            'email' => $this->getEmail(),
            'phone' => $this->getPhone(),
            'phoneMobile' => $this->getPhoneMobile(),
            // address
            'street' => $this->getStreet(),
            'number' => $this->getNumber(),
            'addition' => $this->getAddition(),
            'zip' => $this->getZip(),
            'city' => $this->getCity(),
            'state' => $this->getState(),
            'country' => $this->getCountry(),
            'note' => $this->getNote(),
            'contactAddress' => $this->getContactAddress() ? array(
                'id' => $this->getContactAddress()->getId()
            ) : null,
            // postbox
            'postboxCity' => $this->getPostboxCity(),
            'postboxNumber' => $this->getPostboxNumber(),
            'postboxPostcode' => $this->getPostboxPostcode(),
        );
    }
public function toArray ( ) { return array ( // account 'accountName' => $ this -> getAccountName ( ) , 'uid' => $ this -> getUid ( ) , // contact 'title' => $ this -> getTitle ( ) , 'salutation' => $ this -> getSalutation ( ) , 'firstName' => $ this -> getFirstName ( ) , 'lastName' => $ this -> getLastName ( ) , 'email' => $ this -> getEmail ( ) , 'phone' => $ this -> getPhone ( ) , 'phoneMobile' => $ this -> getPhoneMobile ( ) , // address 'street' => $ this -> getStreet ( ) , 'number' => $ this -> getNumber ( ) , 'addition' => $ this -> getAddition ( ) , 'zip' => $ this -> getZip ( ) , 'city' => $ this -> getCity ( ) , 'state' => $ this -> getState ( ) , 'country' => $ this -> getCountry ( ) , 'note' => $ this -> getNote ( ) , 'contactAddress' => $ this -> getContactAddress ( ) ? array ( 'id' => $ this -> getContactAddress ( ) -> getId ( ) ) : null , // postbox 'postboxCity' => $ this -> getPostboxCity ( ) , 'postboxNumber' => $ this -> getPostboxNumber ( ) , 'postboxPostcode' => $ this -> getPostboxPostcode ( ) , ) ; }
Converts a BaseOrderAddress
Converts a BaseOrderAddress