Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class SetWebhook extends Command |
||
10 | { |
||
11 | /** |
||
12 | * The name and signature of the console command. |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $signature = 'tg-notifier:webhook:set'; |
||
17 | |||
18 | /** |
||
19 | * The console command description. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $description = 'Set webhook'; |
||
24 | |||
25 | protected WebhookService $webhookService; |
||
26 | |||
27 | public function __construct(WebhookService $webhookService) |
||
28 | { |
||
29 | parent::__construct(); |
||
30 | $this->webhookService = $webhookService; |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Execute the console command. |
||
35 | * |
||
36 | * @return void |
||
37 | */ |
||
38 | public function handle(): void |
||
46 | } |
||
47 | } |
||
49 |