/** * Get context for this task * @return string */ protected function getContext() { return $this->repository->getContext() . '/tasks/' . $this->id; }
/** * Get tasks repository for given project * @param string $id_or_slug * @return Tasks */ public function tasksForProject($id_or_slug) { $repository = new Tasks($this); $repository->setProjectId($id_or_slug); return $repository; }