original_string: public function add(Job $job)
      {
          $jobClass = new \ReflectionClass($job);
          $name = $jobClass->getName();
          $object = serialize($job);
          $jobId = $this->broker->put(['object' => $object, 'class' => $name]);
          $this->broker->setStatus($jobId,
              ['status' => Job::STATUS_QUEUED, 'queued'=> date(DATE_RFC3339_EXTENDED)]
          );
          return $jobId;
      }
code: public function add(Job $job)
      {
          $jobClass = new \ReflectionClass($job);
          $name = $jobClass->getName();
          $object = serialize($job);
          $jobId = $this->broker->put(['object' => $object, 'class' => $name]);
          $this->broker->setStatus($jobId,
              ['status' => Job::STATUS_QUEUED, 'queued'=> date(DATE_RFC3339_EXTENDED)]
          );
          return $jobId;
      }
code_tokens: public function add ( Job $ job ) { $ jobClass = new \ ReflectionClass ( $ job ) ; $ name = $ jobClass -> getName ( ) ; $ object = serialize ( $ job ) ; $ jobId = $ this -> broker -> put ( [ 'object' => $ object , 'class' => $ name ] ) ; $ this -> broker -> setStatus ( $ jobId , [ 'status' => Job :: STATUS_QUEUED , 'queued' => date ( DATE_RFC3339_EXTENDED ) ] ) ; return $ jobId ; }
docstring: Add a job to the job queue.
  
  @param Job $job
  @return string
docstring_tokens: Add a job to the job queue .