src/Recipient/Membership.php
public function getContact(Communicator $communicator): ProcessedContact
    {
            $contactJSON = $communicator->get('api/groups/'.$this->contactID);
            $contact = RecipientFactory::createProcessedGroupFromJSON($contactJSON);
            return $contact;
    }
public function getContact(Communicator $communicator): ProcessedContact
    {
            $contactJSON = $communicator->get('api/groups/'.$this->contactID);
            $contact = RecipientFactory::createProcessedGroupFromJSON($contactJSON);
            return $contact;
    }
public function getContact ( Communicator $ communicator ) : ProcessedContact { $ contactJSON = $ communicator -> get ( 'api/groups/' . $ this -> contactID ) ; $ contact = RecipientFactory :: createProcessedGroupFromJSON ( $ contactJSON ) ; return $ contact ; }
Returns the Contact this membership is referenced to.
@param Communicator $communicator Used to fetch the Contact from the API.
@return ProcessedContact
Returns the Contact this membership is referenced to .