InlineQueryResultVenue::setFoursquareId()   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 1
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 venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content
12
 * to send a message with the specified content instead of the venue.
13
 *
14
 * More on https://core.telegram.org/bots/api#inlinequeryresultvenue
15
 */
16
class InlineQueryResultVenue extends InlineQueryResult
17
{
18
19
    /**
20
     * Latitude of the venue location in degrees
21
     *
22
     * @var float
23
     */
24
    private $latitude;
25
26
    /**
27
     * Longitude of the venue location in degrees
28
     *
29
     * @var float
30
     */
31
    private $longitude;
32
33
    /**
34
     * Title of the venue
35
     *
36
     * @var string
37
     */
38
    private $title;
39
40
    /**
41
     * Address of the venue
42
     *
43
     * @var string
44
     */
45
    private $address;
46
47
    /**
48
     * Optional. Foursquare identifier of the venue if known
49
     *
50
     * @var string|null
51
     */
52
    private $foursquare_id;
53
54
    /**
55
     * Optional. Foursquare type of the venue, if known. (For example, "arts_entertainment/default",
56
     * "arts_entertainment/aquarium" or "food/icecream".)
57
     *
58
     * @var string|null
59
     */
60
    private $foursquare_type;
61
62
    /**
63
     * Optional. Google Places identifier of the venue
64
     *
65
     * @since zanzara 0.5.0, Telegram Bot Api 5.0
66
     *
67
     * @var string|null
68
     */
69
    private $google_place_id;
70
71
    /**
72
     * Optional. Google Places type of the venue. (See supported types.)
73
     *
74
     * @since zanzara 0.5.0, Telegram Bot Api 5.0
75
     *
76
     * @var string|null
77
     */
78
    private $google_place_type;
79
80
    /**
81
     * Optional. Inline keyboard attached to the message
82
     *
83
     * @var InlineKeyboardMarkup|null
84
     */
85
    private $reply_markup;
86
87
    /**
88
     * Optional. Content of the message to be sent instead of the venue
89
     *
90
     * @var InputMessageContent|null
91
     */
92
    private $input_message_content;
93
94
    /**
95
     * Optional. Url of the thumbnail for the result
96
     *
97
     * @var string|null
98
     */
99
    private $thumb_url;
100
101
    /**
102
     * Optional. Thumbnail width
103
     *
104
     * @var int|null
105
     */
106
    private $thumb_width;
107
108
    /**
109
     * Optional. Thumbnail height
110
     *
111
     * @var int|null
112
     */
113
    private $thumb_height;
114
115
    /**
116
     * @return float
117
     */
118
    public function getLatitude(): float
119
    {
120
        return $this->latitude;
121
    }
122
123
    /**
124
     * @param float $latitude
125
     */
126
    public function setLatitude(float $latitude): void
127
    {
128
        $this->latitude = $latitude;
129
    }
130
131
    /**
132
     * @return float
133
     */
134
    public function getLongitude(): float
135
    {
136
        return $this->longitude;
137
    }
138
139
    /**
140
     * @param float $longitude
141
     */
142
    public function setLongitude(float $longitude): void
143
    {
144
        $this->longitude = $longitude;
145
    }
146
147
    /**
148
     * @return string
149
     */
150
    public function getTitle(): string
151
    {
152
        return $this->title;
153
    }
154
155
    /**
156
     * @param string $title
157
     */
158
    public function setTitle(string $title): void
159
    {
160
        $this->title = $title;
161
    }
162
163
    /**
164
     * @return string
165
     */
166
    public function getAddress(): string
167
    {
168
        return $this->address;
169
    }
170
171
    /**
172
     * @param string $address
173
     */
174
    public function setAddress(string $address): void
175
    {
176
        $this->address = $address;
177
    }
178
179
    /**
180
     * @return string|null
181
     */
182
    public function getFoursquareId(): ?string
183
    {
184
        return $this->foursquare_id;
185
    }
186
187
    /**
188
     * @param string|null $foursquare_id
189
     */
190
    public function setFoursquareId(?string $foursquare_id): void
191
    {
192
        $this->foursquare_id = $foursquare_id;
193
    }
194
195
    /**
196
     * @return string|null
197
     */
198
    public function getFoursquareType(): ?string
199
    {
200
        return $this->foursquare_type;
201
    }
202
203
    /**
204
     * @param string|null $foursquare_type
205
     */
206
    public function setFoursquareType(?string $foursquare_type): void
207
    {
208
        $this->foursquare_type = $foursquare_type;
209
    }
210
211
    /**
212
     * @return InlineKeyboardMarkup|null
213
     */
214
    public function getReplyMarkup(): ?InlineKeyboardMarkup
215
    {
216
        return $this->reply_markup;
217
    }
218
219
    /**
220
     * @param InlineKeyboardMarkup|null $reply_markup
221
     */
222
    public function setReplyMarkup(?InlineKeyboardMarkup $reply_markup): void
223
    {
224
        $this->reply_markup = $reply_markup;
225
    }
226
227
    /**
228
     * @return InputMessageContent|null
229
     */
230
    public function getInputMessageContent(): ?InputMessageContent
231
    {
232
        return $this->input_message_content;
233
    }
234
235
    /**
236
     * @param InputMessageContent|null $input_message_content
237
     */
238
    public function setInputMessageContent(?InputMessageContent $input_message_content): void
239
    {
240
        $this->input_message_content = $input_message_content;
241
    }
242
243
    /**
244
     * @return string|null
245
     */
246
    public function getThumbUrl(): ?string
247
    {
248
        return $this->thumb_url;
249
    }
250
251
    /**
252
     * @param string|null $thumb_url
253
     */
254
    public function setThumbUrl(?string $thumb_url): void
255
    {
256
        $this->thumb_url = $thumb_url;
257
    }
258
259
    /**
260
     * @return int|null
261
     */
262
    public function getThumbWidth(): ?int
263
    {
264
        return $this->thumb_width;
265
    }
266
267
    /**
268
     * @param int|null $thumb_width
269
     */
270
    public function setThumbWidth(?int $thumb_width): void
271
    {
272
        $this->thumb_width = $thumb_width;
273
    }
274
275
    /**
276
     * @return int|null
277
     */
278
    public function getThumbHeight(): ?int
279
    {
280
        return $this->thumb_height;
281
    }
282
283
    /**
284
     * @param int|null $thumb_height
285
     */
286
    public function setThumbHeight(?int $thumb_height): void
287
    {
288
        $this->thumb_height = $thumb_height;
289
    }
290
291
    /**
292
     * @return string|null
293
     */
294
    public function getGooglePlaceId(): ?string
295
    {
296
        return $this->google_place_id;
297
    }
298
299
    /**
300
     * @param string|null $google_place_id
301
     */
302
    public function setGooglePlaceId(?string $google_place_id): void
303
    {
304
        $this->google_place_id = $google_place_id;
305
    }
306
307
    /**
308
     * @return string|null
309
     */
310
    public function getGooglePlaceType(): ?string
311
    {
312
        return $this->google_place_type;
313
    }
314
315
    /**
316
     * @param string|null $google_place_type
317
     */
318
    public function setGooglePlaceType(?string $google_place_type): void
319
    {
320
        $this->google_place_type = $google_place_type;
321
    }
322
323
}