InlineQueryResultCachedSticker::getStickerFileId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Zanzara\Telegram\Type\InlineQueryResult;
6
7
use Zanzara\Telegram\Type\Input\InputMessageContent;
8
use Zanzara\Telegram\Type\Keyboard\InlineKeyboardMarkup;
9
10
/**
11
 * Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user.
12
 * Alternatively, you can use input_message_content to send a message with the specified content instead of the
13
 * sticker.
14
 *
15
 * More on https://core.telegram.org/bots/api#inlinequeryresultcachedsticker
16
 */
17
class InlineQueryResultCachedSticker extends InlineQueryResult
18
{
19
20
    /**
21
     * A valid file identifier of the sticker
22
     *
23
     * @var string
24
     */
25
    private $sticker_file_id;
26
27
    /**
28
     * Optional. Inline keyboard attached to the message
29
     *
30
     * @var InlineKeyboardMarkup|null
31
     */
32
    private $reply_markup;
33
34
    /**
35
     * Optional. Content of the message to be sent instead of the sticker
36
     *
37
     * @var InputMessageContent|null
38
     */
39
    private $input_message_content;
40
41
    /**
42
     * @return string
43
     */
44
    public function getStickerFileId(): string
45
    {
46
        return $this->sticker_file_id;
47
    }
48
49
    /**
50
     * @param string $sticker_file_id
51
     */
52
    public function setStickerFileId(string $sticker_file_id): void
53
    {
54
        $this->sticker_file_id = $sticker_file_id;
55
    }
56
57
    /**
58
     * @return InlineKeyboardMarkup|null
59
     */
60
    public function getReplyMarkup(): ?InlineKeyboardMarkup
61
    {
62
        return $this->reply_markup;
63
    }
64
65
    /**
66
     * @param InlineKeyboardMarkup|null $reply_markup
67
     */
68
    public function setReplyMarkup(?InlineKeyboardMarkup $reply_markup): void
69
    {
70
        $this->reply_markup = $reply_markup;
71
    }
72
73
    /**
74
     * @return InputMessageContent|null
75
     */
76
    public function getInputMessageContent(): ?InputMessageContent
77
    {
78
        return $this->input_message_content;
79
    }
80
81
    /**
82
     * @param InputMessageContent|null $input_message_content
83
     */
84
    public function setInputMessageContent(?InputMessageContent $input_message_content): void
85
    {
86
        $this->input_message_content = $input_message_content;
87
    }
88
89
}