public function getJob() { $job_data = $this->dataSource->get(); $nextJob = new \PHPQueue\Job($job_data, $this->dataSource->last_job_id); $this->currentJobs[$this->dataSource->last_job_id] = $nextJob; $this->last_job_id = $this->dataSource->last_job_id; return $nextJob; }