Returns the Contact this membership is referenced to.
@param Communicator $communicator Used to fetch the Contact from the API.
@return ProcessedContact
494173
public function getContact(Communicator $communicator): ProcessedContact
    {
            $contactJSON = $communicator->get('api/groups/'.$this->contactID);
            $contact = RecipientFactory::createProcessedGroupFromJSON($contactJSON);
            return $contact;
    }
975106
public function getDealerContact(ConnectionInterface $con = null)
    {
        if ($this->aDealerContact === null && ($this->id !== null)) {
            $this->aDealerContact = ChildDealerContactQuery::create()->findPk($this->id, $con);
            /* The following can be used additionally to
                guarantee the related object contains a reference
                to this object.  This level of coupling may, however, be
                undesirable since it could result in an only partially populated collection
                in the referenced object.
                $this->aDealerContact->addDealerContactVersions($this);
             */
        }

        return $this->aDealerContact;
    }
984108
public function getContactsByUser(
        User $user,
        $orderedBy = 'lastName',
        $order = 'ASC',
        $executeQuery = true
    )
    {
        return $this->contactRepo->findContactsByUser(
            $user,
            $orderedBy,
            $order, 
            $executeQuery
        );
    }
10593
public ContactType getContactType(Person recPerson)
    {
        if (m_recContactType == null)
        {
            m_recContactType = (ContactType)Record.makeRecordFromClassName(ContactTypeModel.CONTACT_TYPE_FILE, this.getOwner().getRecord().findRecordOwner());
            if (((Record)m_recContactType).getRecordOwner() != null)
                ((Record)m_recContactType).getRecordOwner().removeRecord((Record)m_recContactType);
        }
        return m_recContactType.getContactType(recPerson);
    }
1195872
public function getConnectorContact()
    {
        if (! isset($this->contactFromAccount)) {
            $contact = $this->_getApiClient()->getContactByEmail(
                $this->getCustomer()->getEmail()
            );
            if (isset($contact->id)) {
                $this->contactFromAccount = $contact;
                $this->customerSession->setConnectorContactId($contact->id);
            }
        }

        return $this->contactFromAccount;
    }
654238
public function getMailer(): MailerContract
    {
        if (! $this->mailer instanceof MailerContract) {
            $this->mailer = $this->app->make('mailer');
        }

        return $this->mailer;
    }
768927
public function getSingleContact($id)
    {
        $response = $this->client->get(Resources::$Contact, ['id' => $id]);
        if (!$response->success()) {
            $this->throwError("MailjetService:getSingleContact() failed", $response);
        }
        return $response;
    }
255331
public function InitializeExternal(ThreadCommunicator $communicator)
    {
        $communicator->getLoop()->addReadStream($this->stream, function ($stream)
        {
            $message = fgets($stream, 1024);
            //calling the EventEmiiter::emit() function on parent
            $this->callOnParent('emit', array('stream_message', array($message)));
        });
    }
621334
public static function createProcessedContactFromStdClassArray(array $contactArray): ClassValidationArray
    {
        $contacts = new ClassValidationArray();
        foreach ($contactArray as $c) {
            $contacts[] = self::createProcessedContactFromStdClass($c);
        }
        return $contacts;
    }
208054
def getContact(self, user=None, channel=None):
        
        try:
            return self.contacts[(channel, user)]
        except KeyError:
            new_contact = self.contactClass(self, user=user, channel=channel)
            self.contacts[(channel, user)] = new_contact
            new_contact.setServiceParent(self)
            return new_contact
263808
private function getContact($id)
    {
        $contact = $this->contactManager->findById($id);

        if (!$contact) {
            throw new EntityNotFoundException($this->contactManager->getContactEntityName(), $id);
        }

        return $contact;
    }
711869
public static function getByHandle($cnvEditorHandle)
    {
        $db = Database::connection();
        $r = $db->fetchAssoc(
            'select *
             from ConversationEditors
             where cnvEditorHandle = ?',
            array($cnvEditorHandle)
        );

        return static::createFromRecord($r);
    }
53048
public function getContact()
    {
        if (empty($this->contact)) {
            throw new LogicException(
                sprintf(self::ERROR_MISSING_ATTRIBUTE_FORMAT, 'contact')
            );
        }
        return $this->contact;
    }
866568
public function setContactClient(ContactClient $contactClient)
    {
        $this->contactClient = $contactClient;
        $this->setPayload($this->contactClient->getApiPayload());

        return $this;
    }
1358825
public function getDealerContactInfo(ConnectionInterface $con = null)
    {
        if ($this->aDealerContactInfo === null && ($this->id !== null)) {
            $this->aDealerContactInfo = ChildDealerContactInfoQuery::create()->findPk($this->id, $con);
            /* The following can be used additionally to
                guarantee the related object contains a reference
                to this object.  This level of coupling may, however, be
                undesirable since it could result in an only partially populated collection
                in the referenced object.
                $this->aDealerContactInfo->addDealerContactInfoVersions($this);
             */
        }

        return $this->aDealerContactInfo;
    }
1007188
public static function getSimpleContacts()
    {
        $contactObj = self::listPeopleConnections();

        // Parser
        $contacts = [];
            
        if (count($contactObj->getConnections()) != 0) {
            
            foreach ($contactObj->getConnections() as $person) {

                // var_dump($person);exit;
                $data = [];
                // Resource name
                $data['id'] = $person->getResourceName();
                $data['name'] = isset($person->getNames()[0]) 
                    ? $person->getNames()[0]->getDisplayName() 
                    : null;
                $data['email'] = isset($person->getEmailAddresses()[0]) 
                    ? $person->getEmailAddresses()[0]->getValue() 
                    : null;
                $data['phone'] = isset($person->getPhoneNumbers()[0]) 
                    ? $person->getPhoneNumbers()[0]->getValue() 
                    : null;

                $contacts[] = $data;
            }
        }
        
        return $contacts;
    }
1314426
public function getMainContact()
    {
        if ($this->entity->getMainContact()) {
            return new Contact($this->entity->getMainContact(), $this->locale);
        }
    }