StickerSet::subEntities()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
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