1 | <?php |
||
17 | class RollbackCommand extends AbstractCommand |
||
18 | { |
||
19 | /** |
||
20 | * Sets the configurations of the specified command. |
||
21 | * |
||
22 | * @return void |
||
23 | */ |
||
24 | 33 | protected function configure() |
|
30 | |||
31 | /** |
||
32 | * Executes the command. |
||
33 | * |
||
34 | * @param \Symfony\Component\Console\Input\InputInterface $input |
||
35 | * @param \Symfony\Component\Console\Output\OutputInterface $output |
||
36 | * @return object|\Symfony\Component\Console\Output\OutputInterface |
||
37 | */ |
||
38 | 9 | protected function execute(InputInterface $input, OutputInterface $output) |
|
56 | |||
57 | /** |
||
58 | * Checks if the version is valid to be rolled back. |
||
59 | * |
||
60 | * @param array $migrations |
||
61 | * @param string $version |
||
62 | * @return boolean |
||
63 | */ |
||
64 | 6 | protected function isValidVersion(array $migrations, $version) |
|
74 | } |
||
75 |