public function getPathForDocument($id) { if (!$this->validateId($id)) { throw new \Exception(sprintf('`%s` is not a valid document ID.', $id)); } return $this->path . DIRECTORY_SEPARATOR . $this->getFilename($id); }