Completed
Push — master ( 770142...55698b )
by Armando
01:37
created

Audio::subEntities()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * This file is part of the TelegramBot package.
4
 *
5
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Longman\TelegramBot\Entities;
12
13
/**
14
 * Class Audio
15
 *
16
 * @link https://core.telegram.org/bots/api#audio
17
 *
18
 * @method string    getFileId()    Unique identifier for this file
19
 * @method int       getDuration()  Duration of the audio in seconds as defined by sender
20
 * @method string    getPerformer() Optional. Performer of the audio as defined by sender or by audio tags
21
 * @method string    getTitle()     Optional. Title of the audio as defined by sender or by audio tags
22
 * @method string    getMimeType()  Optional. MIME type of the file as defined by sender
23
 * @method int       getFileSize()  Optional. File size
24
 * @method PhotoSize getThumb()     Optional. Thumbnail of the album cover to which the music file belongs
25
 */
26
class Audio extends Entity
27
{
28
    /**
29
     * {@inheritdoc}
30
     */
31 1
    protected function subEntities()
32
    {
33
        return [
34 1
            'thumb' => PhotoSize::class,
35
        ];
36
    }
37
}
38