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;
    }
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;
    }
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 ; }
Add a job to the job queue.

@param Job $job
@return string
Add a job to the job queue .