Total Complexity | 4 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | class Deactivation implements State_Events_Deactivation { |
||
20 | |||
21 | /** |
||
22 | * Holds the current Migration Manager and list of all migrations. |
||
23 | * |
||
24 | * @var Migration_Manager |
||
25 | */ |
||
26 | protected Migration_Manager $migration_manager; |
||
27 | |||
28 | public function __construct( Migration_Manager $migration_manager ) { |
||
29 | $this->migration_manager = $migration_manager; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Create all table and seed those that allow. |
||
34 | * |
||
35 | * @return void |
||
36 | */ |
||
37 | public function run(): void { |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Drop all tables in migration manager |
||
43 | * |
||
44 | * @return void |
||
45 | */ |
||
46 | private function drop_tables(): void { |
||
49 | ); |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * Gets a list of all tables which should not be seeded. |
||
54 | * |
||
55 | * @return string[] Array of table names. |
||
56 | */ |
||
57 | private function tables_to_exclude_from_drop_on_deactivation(): array { |
||
70 | } |
||
71 | ) |
||
76 |