ateApi = $ateApi; $this->ateJobs = $ateJobs; } /** * @param $job * * @return array|\stdClass|false * @throws Exception */ public function process( $job ) { $xliffContent = $this->ateApi->get_remote_xliff_content( Obj::prop('url', $job), $job ); $wpmlJobId = $this->ateJobs->apply( $xliffContent ); if ( $wpmlJobId ) { $processedJob = Obj::assoc( 'jobId', $wpmlJobId, $job ); ReturnedJobsQueue::remove( $wpmlJobId ); return $processedJob; } return false; } }