src/Recipient/Membership.php
public function getGroup(Communicator $communicator): ProcessedGroup
    {
            $groupJSON = $communicator->get('api/groups/'.$this->groupID);
            $group = RecipientFactory::createProcessedGroupFromJSON($groupJSON);
            return $group;
    }
public function getGroup(Communicator $communicator): ProcessedGroup
    {
            $groupJSON = $communicator->get('api/groups/'.$this->groupID);
            $group = RecipientFactory::createProcessedGroupFromJSON($groupJSON);
            return $group;
    }
public function getGroup ( Communicator $ communicator ) : ProcessedGroup { $ groupJSON = $ communicator -> get ( 'api/groups/' . $ this -> groupID ) ; $ group = RecipientFactory :: createProcessedGroupFromJSON ( $ groupJSON ) ; return $ group ; }
Returns the Group this membership is referenced to.
@param Communicator $communicator Used to fetch the Group from the API.
@return ProcessedGroup
Returns the Group this membership is referenced to .