| 1 | <?php |
||
| 14 | abstract class AbstractMigrationRunner |
||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Returns supported file extension. |
||
| 19 | * |
||
| 20 | * @return string |
||
| 21 | */ |
||
| 22 | abstract public function getFileExtension(); |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Runs the migration. |
||
| 26 | * |
||
| 27 | * @param string $migration_file Migration file. |
||
| 28 | * @param MigrationContext $context Migration context. |
||
| 29 | * |
||
| 30 | * @return void |
||
| 31 | */ |
||
| 32 | abstract public function run($migration_file, MigrationContext $context); |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Returns new migration template. |
||
| 36 | * |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | 1 | public function getTemplate() |
|
| 43 | |||
| 44 | } |
||
| 45 |