getCaptionEntities()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
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 video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers. By
12
 * default, this animated MPEG-4 file will be sent by the user with an optional caption. Alternatively, you can use
13
 * input_message_content to send a message with the specified content instead of the animation.
14
 *
15
 * More on https://core.telegram.org/bots/api#inlinequeryresultcachedmpeg4gif
16
 */
17
class InlineQueryResultCachedMpeg4Gif extends InlineQueryResult
18
{
19
20
    /**
21
     * A valid file identifier for the MP4 file
22
     *
23
     * @var string
24
     */
25
    private $mpeg4_file_id;
26
27
    /**
28
     * Optional. Title for the result
29
     *
30
     * @var string|null
31
     */
32
    private $title;
33
34
    /**
35
     * Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing
36
     *
37
     * @var string|null
38
     */
39
    private $caption;
40
41
    /**
42
     * Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in
43
     * the media caption.
44
     *
45
     * @var string|null
46
     */
47
    private $parse_mode;
48
49
    /**
50
     * Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
51
     *
52
     * @since zanzara 0.5.0, Telegram Bot Api 5.0
53
     *
54
     * @var \Zanzara\Telegram\Type\MessageEntity[]|null
55
     */
56
    private $caption_entities;
57
58
    /**
59
     * Optional. Inline keyboard attached to the message
60
     *
61
     * @var InlineKeyboardMarkup|null
62
     */
63
    private $reply_markup;
64
65
    /**
66
     * Optional. Content of the message to be sent instead of the video animation
67
     *
68
     * @var InputMessageContent|null
69
     */
70
    private $input_message_content;
71
72
    /**
73
     * @return string
74
     */
75
    public function getMpeg4FileId(): string
76
    {
77
        return $this->mpeg4_file_id;
78
    }
79
80
    /**
81
     * @param string $mpeg4_file_id
82
     */
83
    public function setMpeg4FileId(string $mpeg4_file_id): void
84
    {
85
        $this->mpeg4_file_id = $mpeg4_file_id;
86
    }
87
88
    /**
89
     * @return string|null
90
     */
91
    public function getTitle(): ?string
92
    {
93
        return $this->title;
94
    }
95
96
    /**
97
     * @param string|null $title
98
     */
99
    public function setTitle(?string $title): void
100
    {
101
        $this->title = $title;
102
    }
103
104
    /**
105
     * @return string|null
106
     */
107
    public function getCaption(): ?string
108
    {
109
        return $this->caption;
110
    }
111
112
    /**
113
     * @param string|null $caption
114
     */
115
    public function setCaption(?string $caption): void
116
    {
117
        $this->caption = $caption;
118
    }
119
120
    /**
121
     * @return string|null
122
     */
123
    public function getParseMode(): ?string
124
    {
125
        return $this->parse_mode;
126
    }
127
128
    /**
129
     * @param string|null $parse_mode
130
     */
131
    public function setParseMode(?string $parse_mode): void
132
    {
133
        $this->parse_mode = $parse_mode;
134
    }
135
136
    /**
137
     * @return InlineKeyboardMarkup|null
138
     */
139
    public function getReplyMarkup(): ?InlineKeyboardMarkup
140
    {
141
        return $this->reply_markup;
142
    }
143
144
    /**
145
     * @param InlineKeyboardMarkup|null $reply_markup
146
     */
147
    public function setReplyMarkup(?InlineKeyboardMarkup $reply_markup): void
148
    {
149
        $this->reply_markup = $reply_markup;
150
    }
151
152
    /**
153
     * @return InputMessageContent|null
154
     */
155
    public function getInputMessageContent(): ?InputMessageContent
156
    {
157
        return $this->input_message_content;
158
    }
159
160
    /**
161
     * @param InputMessageContent|null $input_message_content
162
     */
163
    public function setInputMessageContent(?InputMessageContent $input_message_content): void
164
    {
165
        $this->input_message_content = $input_message_content;
166
    }
167
168
    /**
169
     * @return \Zanzara\Telegram\Type\MessageEntity[]|null
170
     */
171
    public function getCaptionEntities(): ?array
172
    {
173
        return $this->caption_entities;
174
    }
175
176
    /**
177
     * @param \Zanzara\Telegram\Type\MessageEntity[]|null $caption_entities
178
     */
179
    public function setCaptionEntities(?array $caption_entities): void
180
    {
181
        $this->caption_entities = $caption_entities;
182
    }
183
184
}