1 | <?php |
||
15 | class GenerateApiDocumentationsCommand extends ConsoleCommand |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * The name and signature of the console command. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $signature = "apidoc:generate"; |
||
24 | |||
25 | /** |
||
26 | * The console command description. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $description = "Generate API Documentations (using API Doc JS)"; |
||
31 | |||
32 | /** |
||
33 | * Create a new command instance. |
||
34 | * |
||
35 | * @return void |
||
|
|||
36 | */ |
||
37 | public function __construct() |
||
41 | |||
42 | /** |
||
43 | * @param \App\Containers\Documentation\Actions\GenerateAPIDocsAction $action |
||
44 | */ |
||
45 | public function handle(GenerateAPIDocsAction $action) |
||
62 | } |
||
63 |
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.