Audio   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 4 1
1
<?php
2
3
namespace TelegramBot\Entities;
4
5
use TelegramBot\Entity;
6
7
/**
8
 * Class Audio
9
 *
10
 * @link https://core.telegram.org/bots/api#audio
11
 *
12
 * @method string    getFileId()        Identifier for this file, which can be used to download or reuse the file
13
 * @method string    getFileUniqueId()  Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
14
 * @method int       getDuration()      Duration of the audio in seconds as defined by sender
15
 * @method string    getPerformer()     Optional. Performer of the audio as defined by sender or by audio tags
16
 * @method string    getTitle()         Optional. Title of the audio as defined by sender or by audio tags
17
 * @method string    getFileName()      Optional. Original filename as defined by sender
18
 * @method string    getMimeType()      Optional. MIME type of the file as defined by sender
19
 * @method int       getFileSize()      Optional. File size
20
 * @method PhotoSize getThumb()         Optional. Thumbnail of the album cover to which the music file belongs
21
 */
22
class Audio extends Entity
23
{
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    protected function subEntities(): array
29
    {
30
        return [
31
            'thumb' => PhotoSize::class,
32
        ];
33
    }
34
35
}
36