HEX
Server: Apache/2.4.65 (Debian)
System: Linux localhost 6.9.12 #1 SMP Tue May 5 14:23:20 UTC 2026 x86_64
User: www-data (33)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/wp-stateless/lib/classes/batch/interface-batch.php
<?php
/**
 * Batch Task Interface
 *
 * @since 4.0.0
 */

namespace wpCloud\StatelessMedia\Batch;

interface IBatchTask {

  /**
   * Initialize the state of the task
   */
  public function init_state();

  /**
   * Get human-friendly description
   */
  public function get_description();

  /**
   * Get the current state of the task
   */
  public function get_state();
  
  /**
   * Set/restore the current state of the task
   */
  public function set_state($state);

  /**
   * Get the next batch of items to process
   */
  public function get_batch();

  /**
   * Process the item
   */
  public function process_item($item);
}