InlineQueryResultCachedSticker   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 12
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace TelegramBot\Entities\InlineQuery;
4
5
use TelegramBot\Entities\InlineKeyboard;
6
use TelegramBot\Entities\InputMessageContent\InputMessageContent;
7
8
/**
9
 * Class InlineQueryResultCachedSticker
10
 *
11
 * @link https://core.telegram.org/bots/api#inlinequeryresultcachedsticker
12
 *
13
 * <code>
14
 * $data = [
15
 *   'id'                    => '',
16
 *   'sticker_file_id'       => '',
17
 *   'reply_markup'          => <InlineKeyboard>,
18
 *   'input_message_content' => <InputMessageContent>,
19
 * ];
20
 * </code>
21
 *
22
 * @method string               getType()                Type of the result, must be sticker
23
 * @method string               getId()                  Unique identifier for this result, 1-64 bytes
24
 * @method string               getStickerFileId()       A valid file identifier of the sticker
25
 * @method InlineKeyboard       getReplyMarkup()         Optional. An Inline keyboard attached to the message
26
 * @method InputMessageContent  getInputMessageContent() Optional. Content of the message to be sent instead of the sticker
27
 *
28
 * @method $this setId(string $id)                                                  Unique identifier for this result, 1-64 bytes
29
 * @method $this setStickerFileId(string $sticker_file_id)                          A valid file identifier of the sticker
30
 * @method $this setReplyMarkup(InlineKeyboard $reply_markup)                       Optional. An Inline keyboard attached to the message
31
 * @method $this setInputMessageContent(InputMessageContent $input_message_content) Optional. Content of the message to be sent instead of the sticker
32
 */
33
class InlineQueryResultCachedSticker extends InlineEntity implements InlineQueryResult
34
{
35
36
    /**
37
     * InlineQueryResultCachedSticker constructor
38
     *
39
     * @param array $data
40
     */
41
    public function __construct(array $data = [])
42
    {
43
        $data['type'] = 'sticker';
44
        parent::__construct($data);
45
    }
46
47
}
48