/** * Convenience function for changing the state of a job identified by a given jobId * * @param $jobId * @param $state * @return JobInfo */ public function updateJobState($jobId, $state) { $job = new JobInfo(); $job->setId($jobId); $job->setState($state); return $this->updateJob($job); }