| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\App\Modules\ImportExportCustomization\Runners\Revert; |
| 4 |
|
| 5 |
use Elementor\App\Modules\ImportExportCustomization\Runners\Runner_Interface; |
| 6 |
|
| 7 |
abstract class Revert_Runner_Base implements Runner_Interface { |
| 8 |
|
| 9 |
/** |
| 10 |
* By the passed data we should decide if we want to run the revert function of the runner or not. |
| 11 |
* |
| 12 |
* @param array $data |
| 13 |
* |
| 14 |
* @return bool |
| 15 |
*/ |
| 16 |
abstract public function should_revert( array $data ): bool; |
| 17 |
|
| 18 |
/** |
| 19 |
* Main function of the runner revert process. |
| 20 |
* |
| 21 |
* @param array $data Necessary data for the revert process. |
| 22 |
*/ |
| 23 |
abstract public function revert( array $data ); |
| 24 |
} |
| 25 |
|