public function getDocument($rid, $database = null, $fetchPlan = null) { $location = $this->getDocumentLocation($database ?: $this->database, $rid, $fetchPlan); return $this->adapter->request('GET', $location); }