InlineQueryResultVenue   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 11
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

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