src/Resource.php
public function getId()
    {
        if (! is_object($this->data) && ! is_array($this->data)) {
            return (string) $this->data;
        }

        return (string) $this->serializer->getId($this->data);
    }
public function getId()
    {
        if (! is_object($this->data) && ! is_array($this->data)) {
            return (string) $this->data;
        }

        return (string) $this->serializer->getId($this->data);
    }
public function getId ( ) { if ( ! is_object ( $ this -> data ) && ! is_array ( $ this -> data ) ) { return ( string ) $ this -> data ; } return ( string ) $ this -> serializer -> getId ( $ this -> data ) ; }
Get the resource ID.

@return string
Get the resource ID .