protected function processSingleIdentifierRelationship($source, DocumentHydrator $hydrator): SingleIdentifierRelationship
    {
        $identifier   = $this->createResourceIdentifier($source->data, $hydrator);
        $relationship = new SingleIdentifierRelationship($identifier);

        $hydrator->hydrateObject($relationship, $source);

        return $relationship;
    }
protected function processSingleIdentifierRelationship($source, DocumentHydrator $hydrator): SingleIdentifierRelationship
    {
        $identifier   = $this->createResourceIdentifier($source->data, $hydrator);
        $relationship = new SingleIdentifierRelationship($identifier);

        $hydrator->hydrateObject($relationship, $source);

        return $relationship;
    }
protected function processSingleIdentifierRelationship ( $ source , DocumentHydrator $ hydrator ) : SingleIdentifierRelationship { $ identifier = $ this -> createResourceIdentifier ( $ source -> data , $ hydrator ) ; $ relationship = new SingleIdentifierRelationship ( $ identifier ) ; $ hydrator -> hydrateObject ( $ relationship , $ source ) ; return $ relationship ; }
Process relationship with single resource identifier

@param  mixed            $source
@param  DocumentHydrator $hydrator
@return SingleIdentifierRelationship
Process relationship with single resource identifier