StickerSet   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 4
c 2
b 0
f 0
dl 0
loc 10
ccs 2
cts 2
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 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