Passed
Push — master ( 7f7158...8d1ed5 )
by Armando
02:55
created

StickerSet::subEntities()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * This file is part of the TelegramBot package.
4
 *
5
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Longman\TelegramBot\Entities;
12
13
/**
14
 * Class StickerSet
15
 *
16
 * @link https://core.telegram.org/bots/api#stickerset
17
 *
18
 * @method string    getName()          Sticker set name
19
 * @method string    getTitle()         Sticker set title
20
 * @method bool      getContainsMasks() True, if the sticker set contains masks
21
 * @method Sticker[] getStickers()      List of all set stickers
22
 */
23
class StickerSet extends Entity
24
{
25
    /**
26
     * {@inheritdoc}
27
     */
28 1
    protected function subEntities()
29
    {
30
        return [
31 1
            'stickers' => [Sticker::class],
32
        ];
33
    }
34
}
35