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

audio   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 12
dl 0
loc 37
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
 * This object represents an audio file to be treated as music by the Telegram clients.
9
 */
10
class audio 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...
11
	/** Keep all of properties which has sub properties */
12
	private const subs = ['thumb' => 'BPT\types\photoSize'];
13
14
	/** Identifier for this file, which can be used to download or reuse the file */
15
	public string $file_id;
16
17
	/**
18
	 * Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be
19
	 * used to download or reuse the file.
20
	 */
21
	public string $file_unique_id;
22
23
	/** Duration of the audio in seconds as defined by sender */
24
	public int $duration;
25
26
	/** Optional. Performer of the audio as defined by sender or by audio tags */
27
	public string $performer;
28
29
	/** Optional. Title of the audio as defined by sender or by audio tags */
30
	public string $title;
31
32
	/** Optional. Original filename as defined by sender */
33
	public string $file_name;
34
35
	/** Optional. MIME type of the file as defined by sender */
36
	public string $mime_type;
37
38
	/** Optional. File size in bytes */
39
	public int $file_size;
40
41
	/** Optional. Thumbnail of the album cover to which the music file belongs */
42
	public photoSize $thumb;
0 ignored issues
show
Bug introduced by
The type BPT\types\photoSize 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...
43
44
45
	public function __construct(stdClass $update) {
46
		parent::__construct($update, self::subs);
47
	}
48
}
49