| 1 |
<?php |
| 2 |
|
| 3 |
namespace FluentCart\App\Modules\WooCommerceMigrator\Contracts; |
| 4 |
|
| 5 |
interface MigrationServiceInterface |
| 6 |
{ |
| 7 |
/** |
| 8 |
* Check if the migration dependencies are met |
| 9 |
* |
| 10 |
* @return bool |
| 11 |
*/ |
| 12 |
public function checkDependencies(): bool; |
| 13 |
|
| 14 |
/** |
| 15 |
* Run the migration |
| 16 |
* |
| 17 |
* @param array $options Migration options |
| 18 |
* @return array Migration results with counts and status |
| 19 |
*/ |
| 20 |
public function migrate(array $options = []): array; |
| 21 |
|
| 22 |
/** |
| 23 |
* Get migration statistics/summary |
| 24 |
* |
| 25 |
* @return array |
| 26 |
*/ |
| 27 |
public function getStats(): array; |
| 28 |
|
| 29 |
/** |
| 30 |
* Clean up migration data (for fresh migrations) |
| 31 |
* |
| 32 |
* @return bool |
| 33 |
*/ |
| 34 |
public function cleanup(): bool; |
| 35 |
} |