Sulu\Bundle\ContactBundle\Api\Contact::getFormOfAddress PHP Method

getFormOfAddress() public method

Get form of address.
public getFormOfAddress ( ) : integer
return integer
    public function getFormOfAddress()
    {
        return $this->entity->getFormOfAddress();
    }

Usage Example

 private function serialize(Contact $contact)
 {
     $tags = [];
     foreach ($contact->getTags() as $tag) {
         $tags[] = $tag->getName();
     }
     return ['formOfAddress' => $contact->getFormOfAddress(), 'title' => $contact->getTitle(), 'salutation' => $contact->getSalutation(), 'fullName' => $contact->getFullName(), 'firstName' => $contact->getFirstName(), 'lastName' => $contact->getLastName(), 'middleName' => $contact->getMiddleName(), 'birthday' => $contact->getBirthday(), 'created' => $contact->getCreated(), 'changed' => $contact->getChanged(), 'medias' => $contact->getMedias(), 'emails' => [], 'phones' => [], 'faxes' => [], 'urls' => [], 'tags' => $tags, 'categories' => []];
 }