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