Completed
Push — master ( 203d4a...ef9e39 )
by
unknown
04:46 queued 02:35
created

InlineQueryResultCachedGif   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
/**
3
 * This file is part of the TelegramBot package.
4
 *
5
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Longman\TelegramBot\Entities\InlineQuery;
12
13
use Longman\TelegramBot\Entities\InlineKeyboard;
14
use Longman\TelegramBot\Entities\InputMessageContent\InputMessageContent;
15
16
/**
17
 * Class InlineQueryResultCachedGif
18
 *
19
 * @link https://core.telegram.org/bots/api#inlinequeryresultcachedgif
20
 *
21
 * <code>
22
 * $data = [
23
 *   'id'                    => '',
24
 *   'gif_file_id'           => '',
25
 *   'title'                 => '',
26
 *   'caption'               => '',
27
 *   'reply_markup'          => <InlineKeyboard>,
28
 *   'input_message_content' => <InputMessageContent>,
29
 * ];
30
 * </code>
31
 *
32
 * @method string               getType()                Type of the result, must be gif
33
 * @method string               getId()                  Unique identifier for this result, 1-64 bytes
34
 * @method string               getGifFileId()           A valid file identifier for the GIF file
35
 * @method string               getTitle()               Optional. Title for the result
36
 * @method string               getCaption()             Optional. Caption of the GIF file to be sent, 0-200 characters
37
 * @method InlineKeyboard       getReplyMarkup()         Optional. An Inline keyboard attached to the message
38
 * @method InputMessageContent  getInputMessageContent() Optional. Content of the message to be sent instead of the GIF animation
39
 *
40
 * @method $this setId(string $id)                                                  Unique identifier for this result, 1-64 bytes
41
 * @method $this setGifFileId(string $gif_file_id)                                  A valid file identifier for the GIF file
42
 * @method $this setTitle(string $title)                                            Optional. Title for the result
43
 * @method $this setCaption(string $caption)                                        Optional. Caption of the GIF file to be sent, 0-200 characters
44
 * @method $this setReplyMarkup(InlineKeyboard $reply_markup)                       Optional. An Inline keyboard attached to the message
45
 * @method $this setInputMessageContent(InputMessageContent $input_message_content) Optional. Content of the message to be sent instead of the GIF animation
46
 */
47
class InlineQueryResultCachedGif extends InlineEntity
48
{
49
    /**
50
     * InlineQueryResultCachedGif constructor
51
     *
52
     * @param array $data
53
     *
54
     * @throws \Longman\TelegramBot\Exception\TelegramException
55
     */
56
    public function __construct(array $data = [])
57
    {
58
        $data['type'] = 'gif';
59
        parent::__construct($data);
60
    }
61
}
62