GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

InlineQueryResultMpeg4Gif::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 0
cts 0
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * This file is part of the TelegramBot package.
5
 *
6
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Longman\TelegramBot\Entities\InlineQuery;
13
14
use Longman\TelegramBot\Entities\InlineKeyboard;
15
use Longman\TelegramBot\Entities\InputMessageContent\InputMessageContent;
16
17
/**
18
 * Class InlineQueryResultMpeg4Gif
19
 *
20
 * @link https://core.telegram.org/bots/api#inlinequeryresultmpeg4gif
21
 *
22
 * <code>
23
 * $data = [
24
 *   'id'                    => '',
25
 *   'mpeg4_url'             => '',
26
 *   'mpeg4_width'           => 30,
27
 *   'mpeg4_height'          => 30,
28
 *   'thumb_url'             => '',
29
 *   'title'                 => '',
30
 *   'caption'               => '',
31
 *   'reply_markup'          => <InlineKeyboard>,
32
 *   'input_message_content' => <InputMessageContent>,
33
 * ];
34
 * </code>
35
 *
36
 * @method string               getType()                Type of the result, must be mpeg4_gif
37
 * @method string               getId()                  Unique identifier for this result, 1-64 bytes
38
 * @method string               getMpeg4Url()            A valid URL for the MP4 file. File size must not exceed 1MB
39
 * @method int                  getMpeg4Width()          Optional. Video width
40
 * @method int                  getMpeg4Height()         Optional. Video height
41
 * @method int                  getMpeg4Duration()       Optional. Video duration
42
 * @method string               getThumbUrl()            URL of the static thumbnail (jpeg or gif) for the result
43
 * @method string               getThumbMimeType()       Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”
44
 * @method string               getTitle()               Optional. Title for the result
45
 * @method string               getCaption()             Optional. Caption of the MPEG-4 file to be sent, 0-200 characters
46
 * @method string               getParseMode()           Optional. Mode for parsing entities in the caption
47
 * @method MessageEntity[]      getCaptionEntities()     Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
48
 * @method InlineKeyboard       getReplyMarkup()         Optional. Inline keyboard attached to the message
49
 * @method InputMessageContent  getInputMessageContent() Optional. Content of the message to be sent instead of the video animation
50
 *
51
 * @method $this setId(string $id)                                                  Unique identifier for this result, 1-64 bytes
52
 * @method $this setMpeg4Url(string $mpeg4_url)                                     A valid URL for the MP4 file. File size must not exceed 1MB
53
 * @method $this setMpeg4Width(int $mpeg4_width)                                    Optional. Video width
54
 * @method $this setMpeg4Height(int $mpeg4_height)                                  Optional. Video height
55
 * @method $this setMpeg4Duration(int $mpeg4_duration)                              Optional. Video duration
56
 * @method $this setThumbUrl(string $thumb_url)                                     URL of the static thumbnail (jpeg or gif) for the result
57
 * @method $this setThumbMimeType(string $thumb_mime_type)                          Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”
58
 * @method $this setTitle(string $title)                                            Optional. Title for the result
59
 * @method $this setCaption(string $caption)                                        Optional. Caption of the MPEG-4 file to be sent, 0-200 characters
60
 * @method $this setParseMode(string $parse_mode)                                   Optional. Mode for parsing entities in the caption
61
 * @method $this setCaptionEntities(array $caption_entities)                        Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
62
 * @method $this setReplyMarkup(InlineKeyboard $reply_markup)                       Optional. Inline keyboard attached to the message
63
 * @method $this setInputMessageContent(InputMessageContent $input_message_content) Optional. Content of the message to be sent instead of the video animation
64
 */
65
class InlineQueryResultMpeg4Gif extends InlineEntity implements InlineQueryResult
66
{
67
    /**
68
     * InlineQueryResultMpeg4Gif constructor
69
     *
70
     * @param array $data
71
     */
72
    public function __construct(array $data = [])
73
    {
74
        $data['type'] = 'mpeg4_gif';
75
        parent::__construct($data);
76
    }
77
}
78