public static function loadPayload($queue, $payload)
    {
        $payload = json_decode($payload, true);

        if (!is_array($payload) or !count($payload)) {
            throw new \InvalidArgumentException('Supplied $payload must be a json encoded array.');
        }

        return new static($queue, $payload['id'], $payload['class'], $payload['data']);
    }
public static function loadPayload($queue, $payload)
    {
        $payload = json_decode($payload, true);

        if (!is_array($payload) or !count($payload)) {
            throw new \InvalidArgumentException('Supplied $payload must be a json encoded array.');
        }

        return new static($queue, $payload['id'], $payload['class'], $payload['data']);
    }
public static function loadPayload ( $ queue , $ payload ) { $ payload = json_decode ( $ payload , true ) ; if ( ! is_array ( $ payload ) or ! count ( $ payload ) ) { throw new \ InvalidArgumentException ( 'Supplied $payload must be a json encoded array.' ) ; } return new static ( $ queue , $ payload [ 'id' ] , $ payload [ 'class' ] , $ payload [ 'data' ] ) ; }
Load a job from the Redis payload

@param  string $queue   The name of the queue to place the job in
@param  string $payload The payload that was stored in Redis
@return string
Load a job from the Redis payload