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