public function push(Job $job, $queueName = '')
    {
        if (!isset($this->queues[$queueName])) {
            $this->queues[$queueName] = [];
        }

        $this->queues[$queueName][] = $job;

        return Queue::QUEUED;

    }
public function push(Job $job, $queueName = '')
    {
        if (!isset($this->queues[$queueName])) {
            $this->queues[$queueName] = [];
        }

        $this->queues[$queueName][] = $job;

        return Queue::QUEUED;

    }
public function push ( Job $ job , $ queueName = '' ) { if ( ! isset ( $ this -> queues [ $ queueName ] ) ) { $ this -> queues [ $ queueName ] = [ ] ; } $ this -> queues [ $ queueName ] [ ] = $ job ; return Queue :: QUEUED ; }
Create a job entry inside the queue. The returned job has to have a
filled id and status.

@param Job $job
@param string $queueName (optional)

@return string (The Job state)
Create a job entry inside the queue . The returned job has to have a filled id and status .