Total Complexity | 5 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | final class SingleFileStrategy implements GeneratorStrategyInterface |
||
15 | { |
||
16 | private static int $sec = 0; |
||
17 | |||
18 | public function __construct( |
||
19 | private readonly MigrationConfig $migrationConfig, |
||
20 | private readonly NameGeneratorInterface $nameGenerator |
||
21 | ) { |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @param non-empty-string $database |
||
|
|||
26 | * @param array<AbstractTable> $tables |
||
27 | * |
||
28 | * @return array<MigrationImage> |
||
29 | */ |
||
30 | public function generate(string $database, array $tables): array |
||
54 | } |
||
55 | } |
||
56 |