public static function load($id)
    {
        $packet = Redis::instance()->hgetall(self::redisKey($id));

        if (empty($packet) or empty($packet['queue']) or !count($payload = json_decode($packet['payload'], true))) {
            return null;
        }

        return new static($packet['queue'], $payload['id'], $payload['class'], $payload['data']);
    }
public static function load($id)
    {
        $packet = Redis::instance()->hgetall(self::redisKey($id));

        if (empty($packet) or empty($packet['queue']) or !count($payload = json_decode($packet['payload'], true))) {
            return null;
        }

        return new static($packet['queue'], $payload['id'], $payload['class'], $payload['data']);
    }
public static function load ( $ id ) { $ packet = Redis :: instance ( ) -> hgetall ( self :: redisKey ( $ id ) ) ; if ( empty ( $ packet ) or empty ( $ packet [ 'queue' ] ) or ! count ( $ payload = json_decode ( $ packet [ 'payload' ] , true ) ) ) { return null ; } return new static ( $ packet [ 'queue' ] , $ payload [ 'id' ] , $ payload [ 'class' ] , $ payload [ 'data' ] ) ; }
Load a job from id

@param  string $id The job id
@return string
Load a job from id