StickerSet   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 10
ccs 4
cts 4
cp 1
rs 10
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 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 string    getStickerType()   Type of stickers in the set, currently one of “regular”, “mask”, “custom_emoji”
22
 * @method bool      getIsAnimated()    True, if the sticker set contains animated stickers
23
 * @method bool      getIsVideo()       True, if the sticker set contains video stickers
24
 * @method Sticker[] getStickers()      List of all set stickers
25
 * @method PhotoSize getThumbnail()     Optional. Sticker set thumbnail in the .WEBP or .TGS format
26
 */
27
class StickerSet extends Entity
28
{
29
    /**
30
     * {@inheritdoc}
31
     */
32 1
    protected function subEntities(): array
33
    {
34 1
        return [
35 1
            'stickers'  => [Sticker::class],
36 1
            'thumbnail' => PhotoSize::class,
37 1
        ];
38
    }
39
}
40