Passed
Branch master (58629d)
by Leonardo
01:27
created

TelegramBot::getToken()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace LeoCarmo\TelegramBot;
4
5
use LeoCarmo\TelegramBot\Model\ChatAction;
6
use LeoCarmo\TelegramBot\Model\Me;
7
use LeoCarmo\TelegramBot\Model\Message;
8
use LeoCarmo\TelegramBot\Model\Photo;
9
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()
29
    {
30
        return self::$bot_token;
31
    }
32
33
    public static function getEndpoint()
34
    {
35
        return self::$telegram_endpoint;
36
    }
37
38
}