Ejemplo n.º 1
0
 /**
  * @param string $title
  * @param array $params
  * @return Issue
  */
 public function createIssue($title, array $params = array())
 {
     $params['title'] = $title;
     $data = $this->api('issues')->create($this->id, $params);
     return Issue::fromArray($this->getClient(), $this, $data);
 }
Ejemplo n.º 2
0
 /**
  * @return Issue[]
  */
 public function issues()
 {
     $data = $this->api('milestones')->issues($this->project->id, $this->id);
     $issues = array();
     foreach ($data as $issue) {
         $issues[] = Issue::fromArray($this->getClient(), $this->project, $issue);
     }
     return $issues;
 }