public function toResourceIdentifier($object): ResourceIdentifierObject
    {
        $context = $this->createContext(get_class($object));

        $id   = $this->identifierHandler->getIdentifier($object, $context);
        $type = $this->resolveType($object, $context);

        return new ResourceIdentifierObject($id, $type);
    }
public function toResourceIdentifier($object): ResourceIdentifierObject
    {
        $context = $this->createContext(get_class($object));

        $id   = $this->identifierHandler->getIdentifier($object, $context);
        $type = $this->resolveType($object, $context);

        return new ResourceIdentifierObject($id, $type);
    }
public function toResourceIdentifier ( $ object ) : ResourceIdentifierObject { $ context = $ this -> createContext ( get_class ( $ object ) ) ; $ id = $ this -> identifierHandler -> getIdentifier ( $ object , $ context ) ; $ type = $ this -> resolveType ( $ object , $ context ) ; return new ResourceIdentifierObject ( $ id , $ type ) ; }
Map object's identification to resource-identifier

@param  $object
@return ResourceIdentifierObject
Map object s identification to resource - identifier