VideoNote   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 4 1
1
<?php
2
3
4
namespace TelegramBot\Entities;
5
6
use TelegramBot\Entity;
7
8
/**
9
 * Class VideoNote
10
 *
11
 * @link https://core.telegram.org/bots/api#videonote
12
 *
13
 * @method string    getFileId()        Identifier for this file, which can be used to download or reuse the file
14
 * @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.
15
 * @method int       getLength()        Video width and height as defined by sender
16
 * @method int       getDuration()        Duration of the audio in seconds as defined by sender
17
 * @method PhotoSize getThumb()            Optional. Video thumbnail as defined by sender
18
 * @method int       getFileSize()        Optional. File size
19
 */
20
class VideoNote extends Entity
21
{
22
23
    /**
24
     * {@inheritdoc}
25
     */
26
    protected function subEntities(): array
27
    {
28
        return [
29
            'thumb' => PhotoSize::class,
30
        ];
31
    }
32
33
}
34