public function pop($queueName = '')
    {

        if (!isset($this->queues[$queueName])) {
            return null;
        }

        if (!$this->queues[$queueName]) {
            return null;
        }

        return array_pop($this->queues[$queueName]);
    }
public function pop($queueName = '')
    {

        if (!isset($this->queues[$queueName])) {
            return null;
        }

        if (!$this->queues[$queueName]) {
            return null;
        }

        return array_pop($this->queues[$queueName]);
    }
public function pop ( $ queueName = '' ) { if ( ! isset ( $ this -> queues [ $ queueName ] ) ) { return null ; } if ( ! $ this -> queues [ $ queueName ] ) { return null ; } return array_pop ( $ this -> queues [ $ queueName ] ) ; }
Get the next job from the queue and remove it.

@param string $queueName (optional)

@return Job|null
Get the next job from the queue and remove it .