GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

EditMessageText   A
last analyzed

Complexity

Total Complexity 12

Size/Duplication

Total Lines 146
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 146
rs 10
c 0
b 0
f 0
wmc 12

12 Methods

Rating   Name   Duplication   Size   Complexity  
A getParseMode() 0 3 1
A setChatId() 0 5 1
A setInlineMessageId() 0 5 1
A setParseMode() 0 5 1
A setDisableWebPagePreview() 0 5 1
A getDisableWebPagePreview() 0 3 1
A getInlineMessageId() 0 3 1
A setMessageId() 0 5 1
A setText() 0 5 1
A getChatId() 0 3 1
A getMessageId() 0 3 1
A getText() 0 3 1
1
<?php
2
3
/**
4
 * Class that represents Telegram's Bot-API "editMessageText" method.
5
 *
6
 * @package Teebot (Telegram bot framework)
7
 *
8
 * @author Stanislav Drozdov <[email protected]>
9
 */
10
11
namespace Teebot\Api\Method\Update;
12
13
use Teebot\Api\Entity\Message;
14
use Teebot\Api\Method\AbstractMethod;
15
16
class EditMessageText extends AbstractMethod
17
{
18
    const NAME          = 'editMessageText';
19
20
    const RETURN_ENTITY = Message::class;
21
22
    protected $chat_id;
23
24
    protected $message_id;
25
26
    protected $inline_message_id;
27
28
    protected $text;
29
30
    protected $parseMode;
31
32
    protected $disable_web_page_preview;
33
34
    protected $supportedProperties = [
35
        'chat_id'                  => false,
36
        'message_id'               => false,
37
        'inline_message_id'        => false,
38
        'text'                     => true,
39
        'parse_mode'               => false,
40
        'disable_web_page_preview' => false,
41
        'reply_markup'             => false
42
    ];
43
44
    /**
45
     * @return mixed
46
     */
47
    public function getChatId()
48
    {
49
        return $this->chat_id;
50
    }
51
52
    /**
53
     * @param mixed $chat_id
54
     *
55
     * @return $this
56
     */
57
    public function setChatId($chat_id)
58
    {
59
        $this->chat_id = $chat_id;
60
61
        return $this;
62
    }
63
64
    /**
65
     * @return mixed
66
     */
67
    public function getMessageId()
68
    {
69
        return $this->message_id;
70
    }
71
72
    /**
73
     * @param mixed $message_id
74
     *
75
     * @return $this
76
     */
77
    public function setMessageId($message_id)
78
    {
79
        $this->message_id = $message_id;
80
81
        return $this;
82
    }
83
84
    /**
85
     * @return mixed
86
     */
87
    public function getInlineMessageId()
88
    {
89
        return $this->inline_message_id;
90
    }
91
92
    /**
93
     * @param mixed $inline_message_id
94
     *
95
     * @return $this
96
     */
97
    public function setInlineMessageId($inline_message_id)
98
    {
99
        $this->inline_message_id = $inline_message_id;
100
101
        return $this;
102
    }
103
104
    /**
105
     * @return mixed
106
     */
107
    public function getText()
108
    {
109
        return $this->text;
110
    }
111
112
    /**
113
     * @param mixed $text
114
     *
115
     * @return $this
116
     */
117
    public function setText($text)
118
    {
119
        $this->text = $text;
120
121
        return $this;
122
    }
123
124
    /**
125
     * @return mixed
126
     */
127
    public function getParseMode()
128
    {
129
        return $this->parseMode;
130
    }
131
132
    /**
133
     * @param mixed $parseMode
134
     *
135
     * @return $this
136
     */
137
    public function setParseMode($parseMode)
138
    {
139
        $this->parseMode = $parseMode;
140
141
        return $this;
142
    }
143
144
    /**
145
     * @return mixed
146
     */
147
    public function getDisableWebPagePreview()
148
    {
149
        return $this->disable_web_page_preview;
150
    }
151
152
    /**
153
     * @param mixed $disable_web_page_preview
154
     *
155
     * @return $this
156
     */
157
    public function setDisableWebPagePreview($disable_web_page_preview)
158
    {
159
        $this->disable_web_page_preview = $disable_web_page_preview;
160
161
        return $this;
162
    }
163
}