Sticker   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 5 1
1
<?php
2
3
4
namespace TelegramBot\Entities;
5
6
use TelegramBot\Entity;
7
8
/**
9
 * Class Sticker
10
 *
11
 * @link https://core.telegram.org/bots/api#sticker
12
 *
13
 * @method string       getFileId()       Identifier for this file, which can be used to download or reuse the file
14
 * @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.
15
 * @method int          getWidth()        Sticker width
16
 * @method int          getHeight()       Sticker height
17
 * @method bool         getIsAnimated()   True, if the sticker is animated
18
 * @method PhotoSize    getThumb()        Optional. Sticker thumbnail in .webp or .jpg format
19
 * @method string       getEmoji()        Optional. Emoji associated with the sticker
20
 * @method string       getSetName()      Optional. Name of the sticker set to which the sticker belongs
21
 * @method MaskPosition getMaskPosition() Optional. For mask stickers, the position where the mask should be placed
22
 * @method int          getFileSize()     Optional. File size
23
 */
24
class Sticker extends Entity
25
{
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    protected function subEntities(): array
31
    {
32
        return [
33
            'thumb' => PhotoSize::class,
34
            'mask_position' => MaskPosition::class,
35
        ];
36
    }
37
38
}
39