Sulu\Component\Contact\Model\ContactInterface::getMainPhone PHP Method

getMainPhone() public method

Get main phone.
public getMainPhone ( ) : string
return string
    public function getMainPhone();

Usage Example

Exemplo n.º 1
0
 /**
  * Returns the data needed for the account list-sidebar.
  *
  * @param ContactInterface $contact
  *
  * @return array
  */
 protected function parseMainContact(ContactInterface $contact)
 {
     if ($contact) {
         $data = [];
         $data['id'] = $contact->getId();
         $data['fullName'] = $contact->getFullName();
         $data['phone'] = $contact->getMainPhone();
         $data['email'] = $contact->getMainEmail();
         return $data;
     } else {
         return null;
     }
 }
All Usage Examples Of Sulu\Component\Contact\Model\ContactInterface::getMainPhone