PluginProbe
WP-Stateless – Google Cloud Storage / trunk
WP-Stateless – Google Cloud Storage vtrunk
4.4.3 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.3.0 2.3.1 2.3.2 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.2.0 3.2.1 3.2.2 All 62 releases
wp-stateless / lib / classes / batch / interface-batch.php

interface-batch.php in WP-Stateless – Google Cloud Storage trunk, at lib/classes/batch/interface-batch.php

42 lines 637 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Batch Task Interface
4 *
5 * @since 4.0.0
6 */
7
8 namespace wpCloud\StatelessMedia\Batch;
9
10 interface IBatchTask {
11
12 /**
13 * Initialize the state of the task
14 */
15 public function init_state();
16
17 /**
18 * Get human-friendly description
19 */
20 public function get_description();
21
22 /**
23 * Get the current state of the task
24 */
25 public function get_state();
26
27 /**
28 * Set/restore the current state of the task
29 */
30 public function set_state($state);
31
32 /**
33 * Get the next batch of items to process
34 */
35 public function get_batch();
36
37 /**
38 * Process the item
39 */
40 public function process_item($item);
41 }
42