ateJobId = $item->ate_id; $job->url = $item->download_link; return $job; } /** * @param \stdClass $row * * @return Job */ public static function fromDb( \stdClass $row ) { $job = new self(); $job->ateJobId = $row->editor_job_id; $job->url = $row->download_url; return $job; } }