Passed
Pull Request — develop (#1077)
by Marco
02:09
created

Video   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 9
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

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