Video   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 Video
10
 *
11
 * @link https://core.telegram.org/bots/api#video
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       getWidth()            Video width as defined by sender
16
 * @method int       getHeight()        Video height as defined by sender
17
 * @method int       getDuration()        Duration of the video in seconds as defined by sender
18
 * @method PhotoSize getThumb()            Optional. Video thumbnail
19
 * @method string    getFileName()        Optional. Original filename as defined by sender
20
 * @method string    getMimeType()        Optional. Mime type of a file as defined by sender
21
 * @method int       getFileSize()        Optional. File size
22
 */
23
class Video extends Entity
24
{
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    protected function subEntities(): array
30
    {
31
        return [
32
            'thumb' => PhotoSize::class,
33
        ];
34
    }
35
36
}
37