GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Audio   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of the TelegramBot package.
5
 *
6
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Longman\TelegramBot\Entities;
13
14
/**
15
 * Class Audio
16
 *
17
 * @link https://core.telegram.org/bots/api#audio
18
 *
19
 * @method string    getFileId()       Identifier for this file, which can be used to download or reuse the file
20
 * @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.
21
 * @method int       getDuration()     Duration of the audio in seconds as defined by sender
22
 * @method string    getPerformer()    Optional. Performer of the audio as defined by sender or by audio tags
23
 * @method string    getTitle()        Optional. Title of the audio as defined by sender or by audio tags
24
 * @method string    getFileName()     Optional. Original filename as defined by sender
25
 * @method string    getMimeType()     Optional. MIME type of the file as defined by sender
26
 * @method int       getFileSize()     Optional. File size
27
 * @method PhotoSize getThumb()        Optional. Thumbnail of the album cover to which the music file belongs
28
 */
29
class Audio extends Entity
30
{
31
    /**
32
     * {@inheritdoc}
33
     */
34
    protected function subEntities(): array
35
    {
36
        return [
37
            'thumb' => PhotoSize::class,
38
        ];
39
    }
40
}
41