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