1 | <?php |
||
10 | class ProcessCommand extends Command |
||
11 | { |
||
12 | /** |
||
13 | * The name and signature of the console command. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $signature = 'gdax:websocket:process'; |
||
18 | |||
19 | /** |
||
20 | * The console command description. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $description = 'Process the WebSocket data'; |
||
25 | |||
26 | /** |
||
27 | * The connector instance. |
||
28 | * |
||
29 | * @var Connector |
||
30 | */ |
||
31 | protected $connector; |
||
32 | |||
33 | /** |
||
34 | * The config repository instance. |
||
35 | * |
||
36 | * @var RepositoryContract |
||
37 | */ |
||
38 | protected $config; |
||
39 | |||
40 | /** |
||
41 | * The subscriber instance. |
||
42 | * |
||
43 | * @var SubscriberContract |
||
44 | */ |
||
45 | protected $subscriber; |
||
46 | |||
47 | /** |
||
48 | * Create a new command instance. |
||
49 | * |
||
50 | * @param Connector $connector |
||
51 | * @param RepositoryContract $config |
||
52 | * @param SubscriberContract $subscriber |
||
53 | */ |
||
54 | 4 | public function __construct(Connector $connector, RepositoryContract $config, SubscriberContract $subscriber) |
|
62 | |||
63 | /** |
||
64 | * Execute the console command. |
||
65 | * |
||
66 | * @return void |
||
67 | */ |
||
68 | 2 | public function handle(): void |
|
75 | } |
||
76 |