private function getJobFromRow(array $row)
    {
        $type = $row['type'];

        /** @var Job $job */
        $job = new $type($this->jsonDecode($row['data']));
        $job->setChannel($row['channel']);
        $job->setBatchId($row['batch_id']);
        $job->setQueue($this, (integer) $row['id']);

        return $job;
    }
private function getJobFromRow(array $row)
    {
        $type = $row['type'];

        /** @var Job $job */
        $job = new $type($this->jsonDecode($row['data']));
        $job->setChannel($row['channel']);
        $job->setBatchId($row['batch_id']);
        $job->setQueue($this, (integer) $row['id']);

        return $job;
    }
private function getJobFromRow ( array $ row ) { $ type = $ row [ 'type' ] ; /** @var Job $job */ $ job = new $ type ( $ this -> jsonDecode ( $ row [ 'data' ] ) ) ; $ job -> setChannel ( $ row [ 'channel' ] ) ; $ job -> setBatchId ( $ row [ 'batch_id' ] ) ; $ job -> setQueue ( $ this , ( integer ) $ row [ 'id' ] ) ; return $ job ; }
Hydrate a job based on row data.

@param  array        $row
@return JobInterface
Hydrate a job based on row data .