| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class TelegramBot |
||
| 11 | {
|
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | protected static $telegram_endpoint = 'https://api.telegram.org/bot'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | protected static $bot_token; |
||
| 22 | |||
| 23 | public static function token(string $bot_token) |
||
| 24 | {
|
||
| 25 | self::$bot_token = $bot_token; |
||
| 26 | } |
||
| 27 | |||
| 28 | public static function getToken() |
||
| 31 | } |
||
| 32 | |||
| 33 | public static function getEndpoint() |
||
| 38 | } |