public static function reserve($queue)
    {
        $payload = Resque::pop($queue);
        if(!is_array($payload)) {
            return false;
        }

        return new Job($queue, $payload);
    }
public static function reserve($queue)
    {
        $payload = Resque::pop($queue);
        if(!is_array($payload)) {
            return false;
        }

        return new Job($queue, $payload);
    }
public static function reserve ( $ queue ) { $ payload = Resque :: pop ( $ queue ) ; if ( ! is_array ( $ payload ) ) { return false ; } return new Job ( $ queue , $ payload ) ; }
Find the next available job from the specified queue and return an
instance of Job for it.

@param string $queue The name of the queue to check for a job in.
@return null|object Null when there aren't any waiting jobs, instance of Job when a job was found.
Find the next available job from the specified queue and return an instance of Job for it .