/** * @return CommittedJob|null */ public function get() { if ($job = $this->redis->get($this->key)) { if ($array = Encoder::decode($job)) { return CommittedJob::jsonUnserialize($array); } } return null; }