public function attach(\stdClass $jobWrapper)
    {

        // attach the job wrapper
        $this->synchronized(function (QueueWorker $self, \stdClass $jw) {
            $self->jobsToExecute[$jw->jobId] = $jw;
        }, $this, $jobWrapper);
    }
public function attach(\stdClass $jobWrapper)
    {

        // attach the job wrapper
        $this->synchronized(function (QueueWorker $self, \stdClass $jw) {
            $self->jobsToExecute[$jw->jobId] = $jw;
        }, $this, $jobWrapper);
    }
public function attach ( \ stdClass $ jobWrapper ) { // attach the job wrapper $ this -> synchronized ( function ( QueueWorker $ self , \ stdClass $ jw ) { $ self -> jobsToExecute [ $ jw -> jobId ] = $ jw ; } , $ this , $ jobWrapper ) ; }
Attaches a job for the passed wrapper to the worker instance.

@param \stdClass $jobWrapper The job wrapper to attach the job for

@return void
Attaches a job for the passed wrapper to the worker instance .