protected function executeQueuedJobs()
    {
        $returnValues = [];
        while ($resumeCommand = array_shift($this->queue)) {
            $returnValues[] = $resumeCommand();
        }

        return array_shift($returnValues);
    }
protected function executeQueuedJobs()
    {
        $returnValues = [];
        while ($resumeCommand = array_shift($this->queue)) {
            $returnValues[] = $resumeCommand();
        }

        return array_shift($returnValues);
    }
protected function executeQueuedJobs ( ) { $ returnValues = [ ] ; while ( $ resumeCommand = array_shift ( $ this -> queue ) ) { $ returnValues [ ] = $ resumeCommand ( ) ; } return array_shift ( $ returnValues ) ; }
Process any pending commands in the queue. If multiple, jobs are in the
queue, only the first return value is given back.

@return mixed
Process any pending commands in the queue . If multiple jobs are in the queue only the first return value is given back .