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

InlineQueryResultCachedMpeg4Gif::__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 InlineQueryResultCachedMpeg4Gif
7
 *
8
 * <code>
9
 * $params = [
10
 *   'id'                         => '',
11
 *   'mpeg4_file_id'              => '',
12
 *   'title'                      => '',
13
 *   'caption'                    => '',
14
 *   'reply_markup'               => '',
15
 *   'input_message_content'      => '',
16
 * ];
17
 * </code>
18
 *
19
 * @link https://core.telegram.org/bots/api#inlinequeryresultcachedmpeg4gif
20
 *
21
 * @method $this setId($string)                     Unique identifier for this result, 1-64 bytes
22
 * @method $this setMpeg4FileId($string)            A valid file identifier for the MP4 file
23
 * @method $this setTitle($string)                  Optional. Title for the result
24
 * @method $this setCaption($string)                Optional. Caption of the MPEG-4 file to be sent, 0-200 characters
25
 * @method $this setReplyMarkup($object)            Optional. Inline keyboard attached to the message
26
 * @method $this setInputMessageContent($object)    Optional. Content of the message to be sent instead of the photo
27
 */
28
29
class InlineQueryResultCachedMpeg4Gif extends InlineBaseObject
30
{
31
    public function __construct($params = [])
32
    {
33
        parent::__construct($params);
34
        $this->put('type', 'mpeg4_gif');
35
    }
36
}
37