Total Complexity | 3 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 50% |
Changes | 0 |
1 | <?php |
||
11 | #[AsCommand('prime:database:create', 'Creates the database from the configuration')] |
||
12 | class CreateDatabaseCommand extends DatabaseCommand |
||
13 | { |
||
14 | protected static $defaultName = 'prime:database:create'; |
||
15 | |||
16 | /** |
||
17 | * {@inheritdoc} |
||
18 | */ |
||
19 | 1 | protected function configure(): void |
|
20 | { |
||
21 | 1 | parent::configure(); |
|
22 | |||
23 | 1 | $this |
|
24 | 1 | ->setDescription('Creates the database from the configuration') |
|
25 | 1 | ; |
|
26 | } |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | protected function interactWithDatabase(ConnectionInterface $connection, ?string $dbName): void |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | protected function interactWithNoDatabase(ConnectionInterface $connection, ?string $dbName): void |
||
44 | } |
||
45 | } |
||
46 |