jobs_status_sync = $jobs_status_sync; $this->jobs_revision_sync = $jobs_revision_sync; $this->update_job = $update_job; } /** * @return WPML_TM_Jobs_Collection * @throws WPML_TP_API_Exception */ public function sync() { return new WPML_TM_Jobs_Collection( $this->jobs_status_sync ->sync() ->append( $this->jobs_revision_sync->sync() ) ->filter_by_status( array( ICL_TM_IN_PROGRESS, ICL_TM_WAITING_FOR_TRANSLATOR ), true ) ->map( array( $this->update_job, 'update_state' ) ) ); } }