1 | <?php |
||
10 | class NotificationTableCommand extends Command |
||
11 | { |
||
12 | /** |
||
13 | * The console command name. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $name = 'notifications:table'; |
||
18 | |||
19 | /** |
||
20 | * The console command description. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $description = 'Create a migration for the notifications table'; |
||
25 | |||
26 | /** |
||
27 | * The filesystem instance. |
||
28 | * |
||
29 | * @var \Illuminate\Filesystem\Filesystem |
||
30 | */ |
||
31 | protected $files; |
||
32 | |||
33 | /** |
||
34 | * @var mixed |
||
35 | */ |
||
36 | protected $composer; |
||
37 | |||
38 | /** |
||
39 | * Create a new notifications table command instance. |
||
40 | * |
||
41 | * @param \Illuminate\Filesystem\Filesystem $files |
||
42 | * @param mixed $composer |
||
43 | * @return void |
||
|
|||
44 | */ |
||
45 | public function __construct(Filesystem $files, $composer) |
||
67 | |||
68 | /** |
||
69 | * Execute the console command. |
||
70 | * |
||
71 | * @return void |
||
72 | */ |
||
73 | public function fire() |
||
83 | |||
84 | /** |
||
85 | * Create a base migration file for the notifications. |
||
86 | * |
||
87 | * @return string |
||
88 | */ |
||
89 | protected function createBaseMigration() |
||
97 | } |
||
98 |
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.