Completed
Push — master ( e52205...6d1075 )
by Armando
04:05 queued 02:25
created

VideoNote::subEntities()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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