1 | <?php |
||
19 | class MigrateCommand extends AbstractController implements CommandInterface, LoggerAwareInterface |
||
20 | { |
||
21 | use LoggerAwareTrait; |
||
22 | |||
23 | /** |
||
24 | * Database migrations helper |
||
25 | * |
||
26 | * @var Migrations |
||
27 | * @since 1.0 |
||
28 | */ |
||
29 | private $migrations; |
||
30 | |||
31 | /** |
||
32 | * Constructor. |
||
33 | * |
||
34 | * @param Migrations $migrations Database migrations helper |
||
35 | * |
||
36 | * @since 1.0 |
||
37 | */ |
||
38 | public function __construct(Migrations $migrations) |
||
42 | |||
43 | /** |
||
44 | * Execute the controller. |
||
45 | * |
||
46 | * @return boolean |
||
47 | * |
||
48 | * @since 1.0 |
||
49 | */ |
||
50 | public function execute() |
||
81 | |||
82 | /** |
||
83 | * Get the command's description |
||
84 | * |
||
85 | * @return string |
||
86 | * |
||
87 | * @since 1.0 |
||
88 | */ |
||
89 | public function getDescription() |
||
93 | |||
94 | /** |
||
95 | * Get the command's title |
||
96 | * |
||
97 | * @return string |
||
98 | * |
||
99 | * @since 1.0 |
||
100 | */ |
||
101 | public function getTitle() |
||
105 | } |
||
106 |