| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class IndexAction |
||
| 17 | { |
||
| 18 | protected Client $client; |
||
| 19 | |||
| 20 | protected Bot $bot; |
||
| 21 | |||
| 22 | protected Notifier $notifier; |
||
| 23 | |||
| 24 | protected Request $request; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @throws ConfigFileException |
||
| 28 | */ |
||
| 29 | public function __construct() |
||
| 30 | { |
||
| 31 | $this->client = new Client(); |
||
| 32 | |||
| 33 | $telegram = new Telegram(config('telegram-git-notifier.bot.token')); |
||
| 34 | $this->bot = new Bot($telegram); |
||
| 35 | $this->notifier = new Notifier(); |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Handle telegram git notifier app |
||
| 40 | * |
||
| 41 | * @return void |
||
| 42 | * @throws InvalidViewTemplateException |
||
| 43 | * @throws MessageIsEmptyException |
||
| 44 | * @throws SendNotificationException |
||
| 45 | */ |
||
| 46 | public function __invoke(): void |
||
| 53 | } |
||
| 54 | } |
||
| 55 |