original_string: protected function setJobInstanceIfNecessary(Job $job, $instance)
      {
          if (in_array(InteractsWithQueue::class, class_uses_recursive(get_class($instance)))) {
              $instance->setJob($job);
          }
  
          return $instance;
      }
code: protected function setJobInstanceIfNecessary(Job $job, $instance)
      {
          if (in_array(InteractsWithQueue::class, class_uses_recursive(get_class($instance)))) {
              $instance->setJob($job);
          }
  
          return $instance;
      }
code_tokens: protected function setJobInstanceIfNecessary ( Job $ job , $ instance ) { if ( in_array ( InteractsWithQueue :: class , class_uses_recursive ( get_class ( $ instance ) ) ) ) { $ instance -> setJob ( $ job ) ; } return $ instance ; }
docstring: Set the job instance of the given class if necessary.
  
  @param \Mellivora\Support\Contracts\Queue\Job $job
  @param mixed                                  $instance
  
  @return mixed
docstring_tokens: Set the job instance of the given class if necessary .