| 1 |
<?php |
| 2 |
/** |
| 3 |
* Implement this interface for a Terminable task, which will |
| 4 |
* execute on the shutdown action. |
| 5 |
* |
| 6 |
* @package SolidWP\Performance |
| 7 |
*/ |
| 8 |
|
| 9 |
declare( strict_types=1 ); |
| 10 |
|
| 11 |
namespace SolidWP\Performance\Shutdown\Contracts; |
| 12 |
|
| 13 |
interface Terminable { |
| 14 |
|
| 15 |
/** |
| 16 |
* Perform a task on shutdown. |
| 17 |
* |
| 18 |
* @action shutdown |
| 19 |
* |
| 20 |
* @return void |
| 21 |
*/ |
| 22 |
public function terminate(): void; |
| 23 |
} |
| 24 |
|