public function run(JobInterface $job)
    {
        parent::run($job);

        if (!($job instanceof MappedJob)) {
            return $this;
        }


        $job->setResult(
            $this->mapper->map(
                $job->getEntityRepository(),
                $job->getMappedClass(),
                $job->getResult()
            )
        );

        // allow chaining
        return $this;
    }
public function run(JobInterface $job)
    {
        parent::run($job);

        if (!($job instanceof MappedJob)) {
            return $this;
        }


        $job->setResult(
            $this->mapper->map(
                $job->getEntityRepository(),
                $job->getMappedClass(),
                $job->getResult()
            )
        );

        // allow chaining
        return $this;
    }
public function run ( JobInterface $ job ) { parent :: run ( $ job ) ; if ( ! ( $ job instanceof MappedJob ) ) { return $ this ; } $ job -> setResult ( $ this -> mapper -> map ( $ job -> getEntityRepository ( ) , $ job -> getMappedClass ( ) , $ job -> getResult ( ) ) ) ; // allow chaining return $ this ; }
runs the parent job and then maps the result

@param JobInterface $job the job to execute

@return self
runs the parent job and then maps the result