1 | <?php |
||
15 | class RevertCommand extends ChangeCommand |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $done = 'Rolled back: '; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $pending = 'Rolling back:'; |
||
26 | |||
27 | /** |
||
28 | * @var boolean |
||
29 | */ |
||
30 | protected $reversed = true; |
||
31 | |||
32 | /** |
||
33 | * Configures the current command. |
||
34 | * |
||
35 | * @return void |
||
36 | */ |
||
37 | protected function configure() |
||
43 | |||
44 | /** |
||
45 | * Executes the command. |
||
46 | * |
||
47 | * @param \Symfony\Component\Console\Input\InputInterface $input |
||
48 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
||
49 | * @return void |
||
50 | */ |
||
51 | protected function execute(InputInterface $input, OutputInterface $output) |
||
65 | |||
66 | /** |
||
67 | * Performs a rollback to a specified migration. |
||
68 | * |
||
69 | * @param string $current |
||
70 | * @param string $version |
||
71 | * @return string|boolean |
||
72 | */ |
||
73 | protected function rollback($current, $version) |
||
87 | |||
88 | /** |
||
89 | * Returns the current and user-specified versions. |
||
90 | * |
||
91 | * @param \Symfony\Component\Console\Input\InputInterface $input |
||
92 | * @return array |
||
93 | */ |
||
94 | protected function version(InputInterface $input) |
||
104 | } |
||
105 |