예제 #1
0
 /**
  * Get context for this milestone
  * @return string
  */
 protected function getContext()
 {
     return $this->repository->getContext() . '/milestones/' . $this->id;
 }
예제 #2
0
 /**
  * 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;
 }