StickerSet::subEntities()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 3
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 5
ccs 2
cts 2
cp 1
crap 1
rs 10
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 StickerSet
16
 *
17
 * @link https://core.telegram.org/bots/api#stickerset
18
 *
19
 * @method string    getName()          Sticker set name
20
 * @method string    getTitle()         Sticker set title
21
 * @method bool      getIsAnimated()    True, if the sticker set contains animated stickers
22
 * @method bool      getContainsMasks() True, if the sticker set contains masks
23
 * @method Sticker[] getStickers()      List of all set stickers
24
 * @method PhotoSize getThumb()         Optional. Sticker set thumbnail in the .WEBP or .TGS format
25
 */
26
class StickerSet extends Entity
27
{
28
    /**
29
     * {@inheritdoc}
30
     */
31 1
    protected function subEntities(): array
32
    {
33
        return [
34 1
            'stickers' => [Sticker::class],
35
            'thumb'    => PhotoSize::class,
36
        ];
37
    }
38
}
39