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

inlineQueryResultAudio   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 16
dl 0
loc 43
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 an MP3 audio file. By default, this audio file will be sent by the user. Alternatively,
9
 * you can use input_message_content to send a message with the specified content instead of the audio.
10
 */
11
class inlineQueryResultAudio 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...
12
	/** Keep all of properties which has sub properties */
13
	private const subs = [
14
		'reply_markup' => 'BPT\types\inlineKeyboardMarkup',
15
		'input_message_content' => 'BPT\types\inputMessageContent',
16
	];
17
18
	/** Type of the result, must be audio */
19
	public string $type;
20
21
	/** Unique identifier for this result, 1-64 bytes */
22
	public string $id;
23
24
	/** A valid URL for the audio file */
25
	public string $audio_url;
26
27
	/** Title */
28
	public string $title;
29
30
	/** Optional. Caption, 0-1024 characters after entities parsing */
31
	public string $caption;
32
33
	/** Optional. Mode for parsing entities in the audio caption. See formatting options for more details. */
34
	public string $parse_mode;
35
36
	/** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */
37
	public array $caption_entities;
38
39
	/** Optional. Performer */
40
	public string $performer;
41
42
	/** Optional. Audio duration in seconds */
43
	public int $audio_duration;
44
45
	/** Optional. Inline keyboard attached to the message */
46
	public inlineKeyboardMarkup $reply_markup;
47
48
	/** Optional. Content of the message to be sent instead of the audio */
49
	public inputMessageContent $input_message_content;
50
51
52
	public function __construct(stdClass $update) {
53
		parent::__construct($update, self::subs);
54
	}
55
}
56