public function mergeContactIntoAddressData(array &$addressData, ContactInterface $contact)
    {
        $addressData['firstName'] = $contact->getFirstName();
        $addressData['lastName'] = $contact->getLastName();
        $addressData['fullName'] = $contact->getFullName();
        $addressData['salutation'] = $contact->getSalutation();
        $addressData['formOfAddress'] = $contact->getFormOfAddress();
        if ($contact->getTitle() !== null) {
            $addressData['title'] = $contact->getTitle()->getTitle();
        }
    }
public function mergeContactIntoAddressData(array &$addressData, ContactInterface $contact)
    {
        $addressData['firstName'] = $contact->getFirstName();
        $addressData['lastName'] = $contact->getLastName();
        $addressData['fullName'] = $contact->getFullName();
        $addressData['salutation'] = $contact->getSalutation();
        $addressData['formOfAddress'] = $contact->getFormOfAddress();
        if ($contact->getTitle() !== null) {
            $addressData['title'] = $contact->getTitle()->getTitle();
        }
    }
public function mergeContactIntoAddressData ( array & $ addressData , ContactInterface $ contact ) { $ addressData [ 'firstName' ] = $ contact -> getFirstName ( ) ; $ addressData [ 'lastName' ] = $ contact -> getLastName ( ) ; $ addressData [ 'fullName' ] = $ contact -> getFullName ( ) ; $ addressData [ 'salutation' ] = $ contact -> getSalutation ( ) ; $ addressData [ 'formOfAddress' ] = $ contact -> getFormOfAddress ( ) ; if ( $ contact -> getTitle ( ) !== null ) { $ addressData [ 'title' ] = $ contact -> getTitle ( ) -> getTitle ( ) ; } }
Sets contact data to address data.

@param array $addressData
@param ContactInterface $contact
Sets contact data to address data .