Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class PhpMigrationRunner extends AbstractMigrationRunner |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * Returns supported file extension. |
||
19 | * |
||
20 | * @return string |
||
21 | */ |
||
22 | 1 | public function getFileExtension() |
|
25 | } |
||
26 | |||
27 | /** |
||
28 | * Runs the migration. |
||
29 | * |
||
30 | * @param string $migration_file Migration file. |
||
31 | * @param MigrationContext $context Migration context. |
||
32 | * |
||
33 | * @return void |
||
34 | * @throws \LogicException When migration doesn't contain a closure. |
||
35 | */ |
||
36 | 2 | public function run($migration_file, MigrationContext $context) |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * Returns new migration template. |
||
49 | * |
||
50 | * @return string |
||
51 | */ |
||
52 | public function getTemplate() |
||
65 |