Completed
Push — master ( a1f3e5...eb9bcc )
by Irfaq
02:42
created

InlineQueryResultVenue::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
ccs 0
cts 4
cp 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Telegram\Bot\Objects\InlineQuery;
4
5
/**
6
 * Class InlineQueryResultVenue
7
 *
8
 * <code>
9
 * $params = [
10
 *   'id'                       => '',
11
 *   'latitude'                 => '',
12
 *   'longitude'                => '',
13
 *   'title'                    => '',
14
 *   'address'                  => '',
15
 *   'foursquare_id'            => '',
16
 *   'reply_markup'             => '',
17
 *   'input_message_content'    => '',
18
 *   'thumb_url'                => '',
19
 *   'thumb_width'              => '',
20
 *   'thumb_height'             => '',
21
 * ];
22
 * </code>
23
 *
24
 * @link https://core.telegram.org/bots/api#inlinequeryresultvenue
25
 *
26
 * @method $this setId($string)                     Unique identifier for this result, 1-64 Bytes
27
 * @method $this setLatitude($float)                Latitude of the venue location in degrees
28
 * @method $this setLongitude($float)               Longitude of the venue location in degrees
29
 * @method $this setTitle($string)                  Title of the venue
30
 * @method $this setAddress($string)                Address of the venue
31
 * @method $this setFoursquareId($string)           Optional. Foursquare identifier of the venue if known
32
 * @method $this setReplyMarkup($object)            Optional. Inline keyboard attached to the message
33
 * @method $this setInputMessageContent($object)    Optional. Content of the message to be sent instead of the venue
34
 * @method $this setThumbUrl($string)               Optional. Url of the thumbnail for the result
35
 * @method $this setThumbWidth($int)                Optional. Thumbnail width
36
 * @method $this setThumbHeight($int)               Optional. Thumbnail height
37
 */
38
class InlineQueryResultVenue extends InlineBaseObject
39
{
40
    public function __construct($params = [])
41
    {
42
        parent::__construct($params);
43
        $this->put('type', 'venue');
44
    }
45
}
46