VideoNote::subEntities()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
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 VideoNote
16
 *
17
 * @link https://core.telegram.org/bots/api#videonote
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       getLength()       Video width and height as defined by sender
22
 * @method int       getDuration()     Duration of the audio in seconds as defined by sender
23
 * @method PhotoSize getThumb()        Optional. Video thumbnail as defined by sender
24
 * @method int       getFileSize()     Optional. File size
25
 */
26
class VideoNote extends Entity
27
{
28
    /**
29
     * {@inheritdoc}
30
     */
31
    protected function subEntities(): array
32
    {
33
        return [
34
            'thumb' => PhotoSize::class,
35
        ];
36
    }
37
}
38