1 | <?php |
||
24 | class MigrateCommand extends AbstractController implements CommandInterface, LoggerAwareInterface |
||
25 | { |
||
26 | use LoggerAwareTrait; |
||
27 | |||
28 | /** |
||
29 | * Database migrations helper |
||
30 | * |
||
31 | * @var Migrations |
||
32 | */ |
||
33 | private $migrations; |
||
34 | |||
35 | /** |
||
36 | * Constructor. |
||
37 | * |
||
38 | * @param Migrations $migrations Database migrations helper |
||
39 | */ |
||
40 | public function __construct(Migrations $migrations) |
||
44 | |||
45 | /** |
||
46 | * Execute the controller. |
||
47 | * |
||
48 | * @return boolean |
||
49 | */ |
||
50 | public function execute() |
||
81 | |||
82 | /** |
||
83 | * Get the command's description |
||
84 | * |
||
85 | * @return string |
||
86 | */ |
||
87 | public function getDescription() : string |
||
91 | |||
92 | /** |
||
93 | * Get the command's title |
||
94 | * |
||
95 | * @return string |
||
96 | */ |
||
97 | public function getTitle() : string |
||
101 | } |
||
102 |