/** * Get text documents repository for given project * @param string $id_or_slug * @return TextDocuments */ public function textDocumentsForProject($id_or_slug) { $repository = new TextDocuments($this); $repository->setProjectId($id_or_slug); return $repository; }