Sticker   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 10
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

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