src/Sulu/Bundle/ContactBundle/Api/Account.php
public function getMainContact()
    {
        if ($this->entity->getMainContact()) {
            return new Contact($this->entity->getMainContact(), $this->locale);
        }
    }
public function getMainContact()
    {
        if ($this->entity->getMainContact()) {
            return new Contact($this->entity->getMainContact(), $this->locale);
        }
    }
public function getMainContact ( ) { if ( $ this -> entity -> getMainContact ( ) ) { return new Contact ( $ this -> entity -> getMainContact ( ) , $ this -> locale ) ; } }
Get mainContact.

@return Account
@VirtualProperty
@SerializedName("mainContact")
@Groups({"fullAccount"})
Get mainContact .