self::GTIN_MIGRATION_COMPLETED ); } /** * Get a single batch of items. * * If no items are returned the job will stop. * * @param int $batch_number The batch number increments for each new batch in the job cycle. * * @return array * * @throws Exception If an error occurs. The exception will be logged by ActionScheduler. */ protected function get_batch( int $batch_number ): array { return $this->product_repository->find_all_product_ids( $this->get_batch_size(), $this->get_query_offset( $batch_number ) ); } /** * Debug info in the logs. * * @param string $message * * @return void */ protected function debug( string $message ): void { do_action( 'woocommerce_gla_debug_message', $message, __METHOD__ ); } }