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

InlineQueryResultMpeg4Gif   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 InlineQueryResultMpeg4Gif
18
 *
19
 * @link https://core.telegram.org/bots/api#inlinequeryresultmpeg4gif
20
 *
21
 * <code>
22
 * $data = [
23
 *   'id'                    => '',
24
 *   'mpeg4_url'             => '',
25
 *   'mpeg4_width'           => 30,
26
 *   'mpeg4_height'          => 30,
27
 *   'thumb_url'             => '',
28
 *   'title'                 => '',
29
 *   'caption'               => '',
30
 *   'reply_markup'          => <InlineKeyboard>,
31
 *   'input_message_content' => <InputMessageContent>,
32
 * ];
33
 * </code>
34
 *
35
 * @method string               getType()                Type of the result, must be mpeg4_gif
36
 * @method string               getId()                  Unique identifier for this result, 1-64 bytes
37
 * @method string               getMpeg4Url()            A valid URL for the MP4 file. File size must not exceed 1MB
38
 * @method int                  getMpeg4Width()          Optional. Video width
39
 * @method int                  getMpeg4Height()         Optional. Video height
40
 * @method string               getThumbUrl()            URL of the static thumbnail (jpeg or gif) for the result
41
 * @method string               getTitle()               Optional. Title for the result
42
 * @method string               getCaption()             Optional. Caption of the MPEG-4 file to be sent, 0-200 characters
43
 * @method InlineKeyboard       getReplyMarkup()         Optional. Inline keyboard attached to the message
44
 * @method InputMessageContent  getInputMessageContent() Optional. Content of the message to be sent instead of the video animation
45
 *
46
 * @method $this setId(string $id)                                                  Unique identifier for this result, 1-64 bytes
47
 * @method $this setMpeg4Url(string $mpeg4_url)                                     A valid URL for the MP4 file. File size must not exceed 1MB
48
 * @method $this setMpeg4Width(int $mpeg4_width)                                    Optional. Video width
49
 * @method $this setMpeg4Height(int $mpeg4_height)                                  Optional. Video height
50
 * @method $this setThumbUrl(string $thumb_url)                                     URL of the static thumbnail (jpeg or gif) for the result
51
 * @method $this setTitle(string $title)                                            Optional. Title for the result
52
 * @method $this setCaption(string $caption)                                        Optional. Caption of the MPEG-4 file to be sent, 0-200 characters
53
 * @method $this setReplyMarkup(InlineKeyboard $reply_markup)                       Optional. Inline keyboard attached to the message
54
 * @method $this setInputMessageContent(InputMessageContent $input_message_content) Optional. Content of the message to be sent instead of the video animation
55
 */
56
class InlineQueryResultMpeg4Gif extends InlineEntity
57
{
58
    /**
59
     * InlineQueryResultMpeg4Gif constructor
60
     *
61
     * @param array $data
62
     *
63
     * @throws \Longman\TelegramBot\Exception\TelegramException
64
     */
65
    public function __construct(array $data = [])
66
    {
67
        $data['type'] = 'mpeg4_gif';
68
        parent::__construct($data);
69
    }
70
}
71