| 1 |
<?php |
| 2 |
/** |
| 3 |
* Interface WordPress\Plugin_Check\Checker\Preparation |
| 4 |
* |
| 5 |
* @package plugin-check |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace WordPress\Plugin_Check\Checker; |
| 9 |
|
| 10 |
use Exception; |
| 11 |
|
| 12 |
/** |
| 13 |
* Interface for a single preparation step. |
| 14 |
* |
| 15 |
* @since 1.0.0 |
| 16 |
*/ |
| 17 |
interface Preparation { |
| 18 |
|
| 19 |
/** |
| 20 |
* Runs preparation step for the environment and returns a closure as a cleanup function. |
| 21 |
* |
| 22 |
* @since 1.0.0 |
| 23 |
* |
| 24 |
* @return callable Cleanup function to revert the changes made here. |
| 25 |
* |
| 26 |
* @throws Exception Thrown when preparation fails. |
| 27 |
*/ |
| 28 |
public function prepare(); |
| 29 |
} |
| 30 |
|