| Total Complexity | 6 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class UpdateBot implements BotInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var TelegramApiInterface |
||
| 16 | */ |
||
| 17 | private $api; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var RepeaterInterface |
||
| 21 | */ |
||
| 22 | private $repeater; |
||
| 23 | |||
| 24 | public function __construct(TelegramApiInterface $api, RepeaterInterface $repeater = null) |
||
| 30 | ); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | public function listen(array $updateHandlers): void |
||
| 42 | } |
||
| 43 | } |
||
| 44 | }); |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return Update[] |
||
| 49 | * |
||
| 50 | * @throws \Zored\Telegram\Exception\TelegramApiException |
||
| 51 | */ |
||
| 52 | private function getUpdates(): array |
||
| 57 |