1 | <?php |
||
11 | class SchemaUpdate extends Command |
||
12 | { |
||
13 | const CONNECTION_NAME = 'schema-update'; |
||
14 | |||
15 | /** |
||
16 | * The name and signature of the console command. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $signature = 'db:schema-update {--force : Force execute queries}'; |
||
21 | |||
22 | /** |
||
23 | * The console command description. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $description = 'Updates database schema with any migration changes'; |
||
28 | |||
29 | /** |
||
30 | * |
||
31 | * @var Application |
||
32 | */ |
||
33 | protected $app; |
||
34 | |||
35 | /** |
||
36 | * |
||
37 | * @var Console |
||
38 | */ |
||
39 | protected $artisan; |
||
40 | |||
41 | /** |
||
42 | * Create a new command instance. |
||
43 | * |
||
44 | * @return void |
||
|
|||
45 | */ |
||
46 | 4 | public function __construct(Application $app, Console $artisan) |
|
53 | |||
54 | /** |
||
55 | * Execute the console command. |
||
56 | * |
||
57 | * @return mixed |
||
58 | */ |
||
59 | public function handle() |
||
96 | |||
97 | protected function createInMemoryDatabase() |
||
122 | |||
123 | /** |
||
124 | * @param string $connection |
||
125 | */ |
||
126 | protected function getSchemaManager($connection = null) |
||
136 | |||
137 | /** |
||
138 | * @return \Doctrine\DBAL\Platforms\AbstractPlatform |
||
139 | */ |
||
140 | protected function getDatabasePlatform($connection = null) |
||
150 | } |
||
151 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.