PluginProbe
Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution / trunk
Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution vtrunk
2.0.1 trunk 1.0.0 1.1.0 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.5.0 1.6.0 1.6.1 1.7.0 1.7.1 1.8.0 1.9.0 2.0.0
solid-performance / src / Performance / Update / Tasks / Contracts / Task.php

Task.php in Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution trunk, at src/Performance/Update/Tasks/Contracts/Task.php

29 lines 431 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The Updater Task contract. Both pre/post bootstrap tasks should
4 * implement this interface.
5 *
6 * @package SolidWP\Performance
7 */
8
9 declare( strict_types=1 );
10
11 namespace SolidWP\Performance\Update\Tasks\Contracts;
12
13 interface Task {
14
15 /**
16 * Whether this task should run.
17 *
18 * @return bool
19 */
20 public function should_run(): bool;
21
22 /**
23 * Run the task.
24 *
25 * @return void
26 */
27 public function run(): void;
28 }
29