InlineQueryResultVenue::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace TelegramBot\Entities\InlineQuery;
4
5
use TelegramBot\Entities\InlineKeyboard;
6
use TelegramBot\Entities\InputMessageContent\InputMessageContent;
7
8
/**
9
 * Class InlineQueryResultVenue
10
 *
11
 * @link https://core.telegram.org/bots/api#inlinequeryresultvenue
12
 *
13
 * <code>
14
 * $data = [
15
 *   'id'                    => '',
16
 *   'latitude'              => 36.0338,
17
 *   'longitude'             => 71.8601,
18
 *   'title'                 => '',
19
 *   'address'               => '',
20
 *   'foursquare_id'         => '',
21
 *   'reply_markup'          => <InlineKeyboard>,
22
 *   'input_message_content' => <InputMessageContent>,
23
 *   'thumb_url'             => '',
24
 *   'thumb_width'           => 30,
25
 *   'thumb_height'          => 30,
26
 * ];
27
 * </code>
28
 *
29
 * @method string              getType()                    Type of the result, must be venue
30
 * @method string              getId()                      Unique identifier for this result, 1-64 Bytes
31
 * @method float               getLatitude()                Latitude of the venue location in degrees
32
 * @method float               getLongitude()               Longitude of the venue location in degrees
33
 * @method string              getTitle()                   Title of the venue
34
 * @method string              getAddress()                 Address of the venue
35
 * @method string              getFoursquareId()            Optional. Foursquare identifier of the venue if known
36
 * @method string              getFoursquareType()          Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
37
 * @method string              getGooglePlaceId()           Optional. Google Places identifier of the venue
38
 * @method string              getGooglePlaceType()         Optional. Google Places type of the venue
39
 * @method InlineKeyboard      getReplyMarkup()             Optional. Inline keyboard attached to the message
40
 * @method InputMessageContent getInputMessageContent()     Optional. Content of the message to be sent instead of the venue
41
 * @method string              getThumbUrl()                Optional. Url of the thumbnail for the result
42
 * @method int                 getThumbWidth()              Optional. Thumbnail width
43
 * @method int                 getThumbHeight()             Optional. Thumbnail height
44
 *
45
 * @method $this setId(string $id)                                                      Unique identifier for this result, 1-64 Bytes
46
 * @method $this setLatitude(float $latitude)                                           Latitude of the venue location in degrees
47
 * @method $this setLongitude(float $longitude)                                         Longitude of the venue location in degrees
48
 * @method $this setTitle(string $title)                                                Title of the venue
49
 * @method $this setAddress(string $address)                                            Address of the venue
50
 * @method $this setFoursquareId(string $foursquare_id)                                 Optional. Foursquare identifier of the venue if known
51
 * @method $this setFoursquareType(string $foursquare_type)                             Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)
52
 * @method $this setGooglePlaceId(string $google_place_id)                              Optional. Google Places identifier of the venue
53
 * @method $this setGooglePlaceType(string $google_place_type)                          Optional. Google Places type of the venue
54
 * @method $this setReplyMarkup(InlineKeyboard $reply_markup)                           Optional. Inline keyboard attached to the message
55
 * @method $this setInputMessageContent(InputMessageContent $input_message_content)     Optional. Content of the message to be sent instead of the venue
56
 * @method $this setThumbUrl(string $thumb_url)                                         Optional. Url of the thumbnail for the result
57
 * @method $this setThumbWidth(int $thumb_width)                                        Optional. Thumbnail width
58
 * @method $this setThumbHeight(int $thumb_height)                                      Optional. Thumbnail height
59
 */
60
class InlineQueryResultVenue extends InlineEntity implements InlineQueryResult
61
{
62
63
    /**
64
     * InlineQueryResultVenue constructor
65
     *
66
     * @param array $data
67
     */
68
    public function __construct(array $data = [])
69
    {
70
        $data['type'] = 'venue';
71
        parent::__construct($data);
72
    }
73
74
}
75