public function setUri($identifier) { if ($this->_uri instanceof ObjectUri) { throw new Exception("Identifier can only be defined if object uri is null"); } $this->_dataObject->setUri($identifier); return $this; }