Passed
Push — 1042-fix_animation_type ( 73b10f...cb6104 )
by Armando
04:34 queued 02:51
created

Animation::subEntities()   A

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 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 4
cp 0
crap 2
rs 10
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 Animation
16
 *
17
 * You can provide an animation for your game so that it looks stylish in chats (check out Lumberjack for an example). This object represents an animation file to be displayed in the message containing a game.
18
 *
19
 * @link https://core.telegram.org/bots/api#animation
20
 *
21
 * @method string    getFileId()   Unique file identifier
22
 * @method int       getWidth()    Video width as defined by sender
23
 * @method int       getHeight()   Video height as defined by sender
24
 * @method int       getDuration() Duration of the video in seconds as defined by sender
25
 * @method PhotoSize getThumb()    Optional. Animation thumbnail as defined by sender
26
 * @method string    getFileName() Optional. Original animation filename as defined by sender
27
 * @method string    getMimeType() Optional. MIME type of the file as defined by sender
28
 * @method int       getFileSize() Optional. File size
29
 **/
30
class Animation extends Entity
31
{
32
    /**
33
     * {@inheritdoc}
34
     */
35
    protected function subEntities()
36
    {
37
        return [
38
            'thumb' => PhotoSize::class,
39
        ];
40
    }
41
}
42