1 | <?php |
||
20 | class MigrationStatusCommand extends AbstractCommand |
||
21 | { |
||
22 | /** |
||
23 | * The default command name |
||
24 | * |
||
25 | * @var string|null |
||
26 | */ |
||
27 | protected static $defaultName = 'database:migrations:status'; |
||
28 | |||
29 | /** |
||
30 | * Database migrations helper |
||
31 | * |
||
32 | * @var Migrations |
||
33 | */ |
||
34 | private $migrations; |
||
35 | |||
36 | /** |
||
37 | * Constructor. |
||
38 | * |
||
39 | * @param Migrations $migrations Database migrations helper |
||
40 | */ |
||
41 | 3 | public function __construct(Migrations $migrations) |
|
47 | |||
48 | /** |
||
49 | * Internal function to execute the command. |
||
50 | * |
||
51 | * @param InputInterface $input The input to inject into the command. |
||
52 | * @param OutputInterface $output The output to inject into the command. |
||
53 | * |
||
54 | * @return integer The command exit code |
||
55 | */ |
||
56 | 3 | protected function doExecute(InputInterface $input, OutputInterface $output): int |
|
94 | |||
95 | /** |
||
96 | * Configures the current command. |
||
97 | * |
||
98 | * @return void |
||
99 | */ |
||
100 | 3 | protected function configure(): void |
|
104 | } |
||
105 |