protected function processIdentifierCollectionRelationship($source, DocumentHydrator $hydrator): IdentifierCollectionRelationship
    {
        $relationship = new IdentifierCollectionRelationship();

        foreach ($source->data as $resourceSrc)
        {
            $relationship->addIdentifier($this->createResourceIdentifier($resourceSrc, $hydrator));
        }

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

        return $relationship;
    }
protected function processIdentifierCollectionRelationship($source, DocumentHydrator $hydrator): IdentifierCollectionRelationship
    {
        $relationship = new IdentifierCollectionRelationship();

        foreach ($source->data as $resourceSrc)
        {
            $relationship->addIdentifier($this->createResourceIdentifier($resourceSrc, $hydrator));
        }

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

        return $relationship;
    }
protected function processIdentifierCollectionRelationship ( $ source , DocumentHydrator $ hydrator ) : IdentifierCollectionRelationship { $ relationship = new IdentifierCollectionRelationship ( ) ; foreach ( $ source -> data as $ resourceSrc ) { $ relationship -> addIdentifier ( $ this -> createResourceIdentifier ( $ resourceSrc , $ hydrator ) ) ; } $ hydrator -> hydrateObject ( $ relationship , $ source ) ; return $ relationship ; }
Process relationship with collection of resource identifiers

@param  mixed            $source
@param  DocumentHydrator $hydrator
@return IdentifierCollectionRelationship
Process relationship with collection of resource identifiers