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