Animation   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 10
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 4 1
1
<?php
2
3
namespace TelegramBot\Entities;
4
5
use TelegramBot\Entity;
6
7
/**
8
 * Class Animation
9
 *
10
 * 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.
11
 *
12
 * @link https://core.telegram.org/bots/api#animation
13
 *
14
 * @method string    getFileId()        Identifier for this file, which can be used to download or reuse the file
15
 * @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.
16
 * @method int       getWidth()         Video width as defined by sender
17
 * @method int       getHeight()        Video height as defined by sender
18
 * @method int       getDuration()      Duration of the video in seconds as defined by sender
19
 * @method PhotoSize getThumb()         Optional. Animation thumbnail as defined by sender
20
 * @method string    getFileName()      Optional. Original animation filename as defined by sender
21
 * @method string    getMimeType()      Optional. MIME type of the file as defined by sender
22
 * @method int       getFileSize()      Optional. File size
23
 **/
24
class Animation extends Entity
25
{
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    protected function subEntities(): array
31
    {
32
        return [
33
            'thumb' => PhotoSize::class,
34
        ];
35
    }
36
37
}
38