protected function propagateListenerOptions($listener, $job)
    {
        return tap($job, function ($job) use ($listener) {
            $job->tries = $listener->tries ?? null;
            $job->timeout = $listener->timeout ?? null;
            $job->timeoutAt = method_exists($listener, 'retryUntil')
                                ? $listener->retryUntil() : null;
        });
    }
protected function propagateListenerOptions($listener, $job)
    {
        return tap($job, function ($job) use ($listener) {
            $job->tries = $listener->tries ?? null;
            $job->timeout = $listener->timeout ?? null;
            $job->timeoutAt = method_exists($listener, 'retryUntil')
                                ? $listener->retryUntil() : null;
        });
    }
protected function propagateListenerOptions ( $ listener , $ job ) { return tap ( $ job , function ( $ job ) use ( $ listener ) { $ job -> tries = $ listener -> tries ?? null ; $ job -> timeout = $ listener -> timeout ?? null ; $ job -> timeoutAt = method_exists ( $ listener , 'retryUntil' ) ? $ listener -> retryUntil ( ) : null ; } ) ; }
Propagate listener options to the job.

@param  mixed  $listener
@param  mixed  $job
@return mixed
Propagate listener options to the job .