1 | <?php |
||
16 | class WebSocketService extends Command |
||
17 | { |
||
18 | /** |
||
19 | * The name and signature of the console command. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $signature = 'run:websocket'; |
||
24 | |||
25 | /** |
||
26 | * The console command description. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $description = 'start websocket'; |
||
31 | |||
32 | /** |
||
33 | * Create a new command instance. |
||
34 | * |
||
35 | * @return void |
||
|
|||
36 | */ |
||
37 | public function __construct() |
||
41 | |||
42 | /** |
||
43 | * Execute the console command. |
||
44 | */ |
||
45 | public function handle() |
||
60 | } |
||
61 |
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.