1 | <?php |
||
7 | class StatusCommand extends AbstractCommand |
||
8 | { |
||
9 | /** |
||
10 | * Migrator instance. |
||
11 | * |
||
12 | * @var Migrator |
||
13 | */ |
||
14 | protected $migrator; |
||
15 | |||
16 | protected static $defaultName = 'status'; |
||
17 | |||
18 | /** |
||
19 | * Constructor. |
||
20 | * |
||
21 | * @param Migrator $migrator |
||
22 | * @param string|null $name |
||
23 | */ |
||
24 | public function __construct(Migrator $migrator, $name = null) |
||
30 | |||
31 | /** |
||
32 | * Configures the current command. |
||
33 | */ |
||
34 | protected function configure() |
||
38 | |||
39 | /** |
||
40 | * Execute the console command. |
||
41 | * |
||
42 | * @return null|int |
||
43 | */ |
||
44 | protected function fire() |
||
52 | |||
53 | /** |
||
54 | * Show old migrations. |
||
55 | * |
||
56 | * @return void |
||
57 | */ |
||
58 | protected function showOldMigrations() |
||
75 | |||
76 | /** |
||
77 | * Show new migrations. |
||
78 | * |
||
79 | * @return void |
||
80 | */ |
||
81 | protected function showNewMigrations() |
||
91 | } |
||
92 |