InlineQueryResultGif   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 8
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Telegram\Bot\Objects\InlineQuery;
4
5
/**
6
 * Class InlineQueryResultGif
7
 *
8
 * <code>
9
 * $params = [
10
 *   'id'                       => '',
11
 *   'gif_url'                  => '',
12
 *   'gif_width'                => '',
13
 *   'gif_height'               => '',
14
 *   'thumb_url'                => '',
15
 *   'title'                    => '',
16
 *   'caption'                  => '',
17
 *   'reply_markup'             => '',
18
 *   'input_message_content'    => '',
19
 * ];
20
 * </code>
21
 *
22
 * @link https://core.telegram.org/bots/api#inlinequeryresultgif
23
 *
24
 * @method $this setId($string)                     Unique identifier for this result, 1-64 bytes
25
 * @method $this setGifUrl($string)                 A valid URL for the GIF file. File size must not exceed 1MB
26
 * @method $this setGifWidth($int)                  Optional. Width of the GIF
27
 * @method $this setGifHeight($int)                 Optional. Height of the GIF
28
 * @method $this setThumbUrl($string)               URL of the static thumbnail for the result (jpeg or gif)
29
 * @method $this setTitle($string)                  Optional. Title for the result
30
 * @method $this setCaption($string)                Optional. Caption of the GIF file to be sent, 0-200 characters
31
 * @method $this setReplyMarkup($object)            Optional. Inline keyboard attached to the message
32
 * @method $this setInputMessageContent($object)    Optional. Content of the message to be sent instead of the photo
33
 */
34
class InlineQueryResultGif extends InlineBaseObject
35
{
36
    public function __construct($params = [])
37
    {
38
        parent::__construct($params);
39
        $this->put('type', 'gif');
40
    }
41
}
42