Passed
Push — main ( 23165f...4af278 )
by Miaad
01:25
created

inlineQueryResultVideo   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 58
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 20
dl 0
loc 58
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
1
<?php
2
3
namespace BPT\types;
4
5
use stdClass;
6
7
/**
8
 * Represents a link to a page containing an embedded video player or a video file. By default, this video file
9
 * will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a
10
 * message with the specified content instead of the video.
11
 */
12
class inlineQueryResultVideo extends types {
0 ignored issues
show
Bug introduced by
The type BPT\types\types was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
13
	/** Keep all of properties which has sub properties */
14
	private const subs = [
15
		'reply_markup' => 'BPT\types\inlineKeyboardMarkup',
16
		'input_message_content' => 'BPT\types\inputMessageContent',
17
	];
18
19
	/** Type of the result, must be video */
20
	public string $type;
21
22
	/** Unique identifier for this result, 1-64 bytes */
23
	public string $id;
24
25
	/** A valid URL for the embedded video player or video file */
26
	public string $video_url;
27
28
	/** Mime type of the content of video url, “text/html” or “video/mp4” */
29
	public string $mime_type;
30
31
	/** URL of the thumbnail (JPEG only) for the video */
32
	public string $thumb_url;
33
34
	/** Title for the result */
35
	public string $title;
36
37
	/** Optional. Caption of the video to be sent, 0-1024 characters after entities parsing */
38
	public string $caption;
39
40
	/** Optional. Mode for parsing entities in the video caption. See formatting options for more details. */
41
	public string $parse_mode;
42
43
	/** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */
44
	public array $caption_entities;
45
46
	/** Optional. Video width */
47
	public int $video_width;
48
49
	/** Optional. Video height */
50
	public int $video_height;
51
52
	/** Optional. Video duration in seconds */
53
	public int $video_duration;
54
55
	/** Optional. Short description of the result */
56
	public string $description;
57
58
	/** Optional. Inline keyboard attached to the message */
59
	public inlineKeyboardMarkup $reply_markup;
60
61
	/**
62
	 * Optional. Content of the message to be sent instead of the video. This field is required if
63
	 * InlineQueryResultVideo is used to send an HTML-page as a result (e.g., a YouTube video).
64
	 */
65
	public inputMessageContent $input_message_content;
66
67
68
	public function __construct(stdClass $update) {
69
		parent::__construct($update, self::subs);
70
	}
71
}
72