InlineQueryResultVideo   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 8
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Telegram\Bot\Objects\InlineQuery;
4
5
/**
6
 * Class InlineQueryResultVideo
7
 *
8
 * <code>
9
 * $params = [
10
 *   'id'                       => '',
11
 *   'video_url'                => '',
12
 *   'mime_type'                => '',
13
 *   'thumb_url'                => '',
14
 *   'title'                    => '',
15
 *   'caption'                  => '',
16
 *   'video_width'              => '',
17
 *   'video_height'             => '',
18
 *   'video_duration'           => '',
19
 *   'description'              => '',
20
 *   'reply_markup'             => '',
21
 *   'input_message_content'    => '',
22
 * ];
23
 * </code>
24
 *
25
 * @link https://core.telegram.org/bots/api#inlinequeryresultvideo
26
 *
27
 * @method $this setId($string)                     Unique identifier for this result, 1-64 bytes
28
 * @method $this setVideoUrl($string)               A valid URL for the embedded video player or video file
29
 * @method $this setMimeType($string)               Mime type of the content of video url, “text/html” or “video/mp4”
30
 * @method $this setThumbUrl($string)               URL of the thumbnail (jpeg only) for the video
31
 * @method $this setTitle($string)                  Title for the result
32
 * @method $this setCaption($string)                Optional. Caption of the video to be sent, 0-200 characters
33
 * @method $this setVideoWidth($int)                Optional. Video width
34
 * @method $this setVideoHeight($int)               Optional. Video height
35
 * @method $this setVideoDuration($int)             Optional. Video duration in seconds
36
 * @method $this setDescription($string)            Optional. Short description of the result
37
 * @method $this setReplyMarkup($object)            Optional. Inline keyboard attached to the message
38
 * @method $this setInputMessageContent($object)    Optional. Content of the message to be sent instead of the photo
39
 */
40
class InlineQueryResultVideo extends InlineBaseObject
41
{
42
    public function __construct($params = [])
43
    {
44
        parent::__construct($params);
45
        $this->put('type', 'video');
46
    }
47
}
48