public function getStoredQueryPath() { if ($this->path === null) { throw new ItemNotFoundException('Not a stored query'); } return $this->path; }