Passed
Push — master ( 85d52f...78024d )
by Armando
01:42
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()       Identifier for this file, which can be used to download or reuse the file
22
 * @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.
23
 * @method int       getWidth()        Video width as defined by sender
24
 * @method int       getHeight()       Video height as defined by sender
25
 * @method int       getDuration()     Duration of the video in seconds as defined by sender
26
 * @method PhotoSize getThumb()        Optional. Animation thumbnail as defined by sender
27
 * @method string    getFileName()     Optional. Original animation filename as defined by sender
28
 * @method string    getMimeType()     Optional. MIME type of the file as defined by sender
29
 * @method int       getFileSize()     Optional. File size
30
 **/
31
class Animation extends Entity
32
{
33
    /**
34
     * {@inheritdoc}
35
     */
36
    protected function subEntities()
37
    {
38
        return [
39
            'thumb' => PhotoSize::class,
40
        ];
41
    }
42
}
43