StickerSet   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 StickerSet
10
 *
11
 * @link https://core.telegram.org/bots/api#stickerset
12
 *
13
 * @method string    getName()          Sticker set name
14
 * @method string    getTitle()         Sticker set title
15
 * @method bool      getIsAnimated()    True, if the sticker set contains animated stickers
16
 * @method bool      getContainsMasks() True, if the sticker set contains masks
17
 * @method Sticker[] getStickers()      List of all set stickers
18
 * @method PhotoSize getThumb()         Optional. Sticker set thumbnail in the .WEBP or .TGS format
19
 */
20
class StickerSet extends Entity
21
{
22
23
    /**
24
     * {@inheritdoc}
25
     */
26
    protected function subEntities(): array
27
    {
28
        return [
29
            'stickers' => [Sticker::class],
30
            'thumb' => PhotoSize::class,
31
        ];
32
    }
33
34
}
35