/** * @return Jenkins_Job[] */ public function getJobs() { $jobs = array(); foreach ($this->view->jobs as $job) { $jobs[] = $this->jenkins->getJob($job->name); } return $jobs; }
/** * @param Jenkins $jenkins * * @return Jenkins_Job */ public function getJenkinsJob(Jenkins $jenkins) { return $jenkins->getJob($this->getJobName()); }