Mellivora/Events/CallQueuedHandler.php
protected function setJobInstanceIfNecessary(Job $job, $instance)
    {
        if (in_array(InteractsWithQueue::class, class_uses_recursive(get_class($instance)))) {
            $instance->setJob($job);
        }

        return $instance;
    }
protected function setJobInstanceIfNecessary(Job $job, $instance)
    {
        if (in_array(InteractsWithQueue::class, class_uses_recursive(get_class($instance)))) {
            $instance->setJob($job);
        }

        return $instance;
    }
protected function setJobInstanceIfNecessary ( Job $ job , $ instance ) { if ( in_array ( InteractsWithQueue :: class , class_uses_recursive ( get_class ( $ instance ) ) ) ) { $ instance -> setJob ( $ job ) ; } return $ instance ; }
Set the job instance of the given class if necessary.

@param \Mellivora\Support\Contracts\Queue\Job $job
@param mixed                                  $instance

@return mixed
Set the job instance of the given class if necessary .