InlineQueryResultArticle::getReplyMarkup()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Zanzara\Telegram\Type\InlineQueryResult;
6
7
use Zanzara\Telegram\Type\Input\InputMessageContent;
8
use Zanzara\Telegram\Type\Keyboard\InlineKeyboardMarkup;
9
10
/**
11
 * Represents a link to an article or web page.
12
 *
13
 * More on https://core.telegram.org/bots/api#inlinequeryresultarticle
14
 */
15
class InlineQueryResultArticle extends InlineQueryResult
16
{
17
18
    /**
19
     * Title of the result
20
     *
21
     * @var string
22
     */
23
    private $title;
24
25
    /**
26
     * Content of the message to be sent
27
     *
28
     * @var InputMessageContent
29
     */
30
    private $input_message_content;
31
32
    /**
33
     * Optional. Inline keyboard attached to the message
34
     *
35
     * @var InlineKeyboardMarkup|null
36
     */
37
    private $reply_markup;
38
39
    /**
40
     * Optional. URL of the result
41
     *
42
     * @var string|null
43
     */
44
    private $url;
45
46
    /**
47
     * Optional. Pass True, if you don't want the URL to be shown in the message
48
     *
49
     * @var bool|null
50
     */
51
    private $hide_url;
52
53
    /**
54
     * Optional. Short description of the result
55
     *
56
     * @var string|null
57
     */
58
    private $description;
59
60
    /**
61
     * Optional. Url of the thumbnail for the result
62
     *
63
     * @var string|null
64
     */
65
    private $thumb_url;
66
67
    /**
68
     * Optional. Thumbnail width
69
     *
70
     * @var int|null
71
     */
72
    private $thumb_width;
73
74
    /**
75
     * Optional. Thumbnail height
76
     *
77
     * @var int|null
78
     */
79
    private $thumb_height;
80
81
    /**
82
     * @return InputMessageContent
83
     */
84
    public function getInputMessageContent(): InputMessageContent
85
    {
86
        return $this->input_message_content;
87
    }
88
89
    /**
90
     * @param InputMessageContent $input_message_content
91
     */
92
    public function setInputMessageContent(InputMessageContent $input_message_content): void
93
    {
94
        $this->input_message_content = $input_message_content;
95
    }
96
97
    /**
98
     * @return InlineKeyboardMarkup|null
99
     */
100
    public function getReplyMarkup(): ?InlineKeyboardMarkup
101
    {
102
        return $this->reply_markup;
103
    }
104
105
    /**
106
     * @param InlineKeyboardMarkup|null $reply_markup
107
     */
108
    public function setReplyMarkup(?InlineKeyboardMarkup $reply_markup): void
109
    {
110
        $this->reply_markup = $reply_markup;
111
    }
112
113
    /**
114
     * @return string|null
115
     */
116
    public function getUrl(): ?string
117
    {
118
        return $this->url;
119
    }
120
121
    /**
122
     * @param string|null $url
123
     */
124
    public function setUrl(?string $url): void
125
    {
126
        $this->url = $url;
127
    }
128
129
    /**
130
     * @return bool|null
131
     */
132
    public function getHideUrl(): ?bool
133
    {
134
        return $this->hide_url;
135
    }
136
137
    /**
138
     * @param bool|null $hide_url
139
     */
140
    public function setHideUrl(?bool $hide_url): void
141
    {
142
        $this->hide_url = $hide_url;
143
    }
144
145
    /**
146
     * @return string|null
147
     */
148
    public function getDescription(): ?string
149
    {
150
        return $this->description;
151
    }
152
153
    /**
154
     * @param string|null $description
155
     */
156
    public function setDescription(?string $description): void
157
    {
158
        $this->description = $description;
159
    }
160
161
    /**
162
     * @return string|null
163
     */
164
    public function getThumbUrl(): ?string
165
    {
166
        return $this->thumb_url;
167
    }
168
169
    /**
170
     * @param string|null $thumb_url
171
     */
172
    public function setThumbUrl(?string $thumb_url): void
173
    {
174
        $this->thumb_url = $thumb_url;
175
    }
176
177
    /**
178
     * @return int|null
179
     */
180
    public function getThumbWidth(): ?int
181
    {
182
        return $this->thumb_width;
183
    }
184
185
    /**
186
     * @param int|null $thumb_width
187
     */
188
    public function setThumbWidth(?int $thumb_width): void
189
    {
190
        $this->thumb_width = $thumb_width;
191
    }
192
193
    /**
194
     * @return int|null
195
     */
196
    public function getThumbHeight(): ?int
197
    {
198
        return $this->thumb_height;
199
    }
200
201
    /**
202
     * @param int|null $thumb_height
203
     */
204
    public function setThumbHeight(?int $thumb_height): void
205
    {
206
        $this->thumb_height = $thumb_height;
207
    }
208
209
    /**
210
     * @return string
211
     */
212
    public function getTitle(): string
213
    {
214
        return $this->title;
215
    }
216
217
    /**
218
     * @param string $title
219
     */
220
    public function setTitle(string $title): void
221
    {
222
        $this->title = $title;
223
    }
224
225
}