| 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 |
|