public function dispatchNextJobInChain()
    {
        if (! empty($this->chained)) {
            dispatch(tap(unserialize(array_shift($this->chained)), function ($next) {
                $next->chained = $this->chained;

                $next->onConnection($next->connection ?: $this->chainConnection);
                $next->onQueue($next->queue ?: $this->chainQueue);

                $next->chainConnection = $this->chainConnection;
                $next->chainQueue = $this->chainQueue;
            }));
        }
    }
public function dispatchNextJobInChain()
    {
        if (! empty($this->chained)) {
            dispatch(tap(unserialize(array_shift($this->chained)), function ($next) {
                $next->chained = $this->chained;

                $next->onConnection($next->connection ?: $this->chainConnection);
                $next->onQueue($next->queue ?: $this->chainQueue);

                $next->chainConnection = $this->chainConnection;
                $next->chainQueue = $this->chainQueue;
            }));
        }
    }
public function dispatchNextJobInChain ( ) { if ( ! empty ( $ this -> chained ) ) { dispatch ( tap ( unserialize ( array_shift ( $ this -> chained ) ) , function ( $ next ) { $ next -> chained = $ this -> chained ; $ next -> onConnection ( $ next -> connection ? : $ this -> chainConnection ) ; $ next -> onQueue ( $ next -> queue ? : $ this -> chainQueue ) ; $ next -> chainConnection = $ this -> chainConnection ; $ next -> chainQueue = $ this -> chainQueue ; } ) ) ; } }
Dispatch the next job on the chain.

@return void
Dispatch the next job on the chain .