Completed
Push — master ( 7d37a2...fea370 )
by Nikolay
06:21
created

SetChatStickerSetMethod   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 21
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Greenplugin\TelegramBot\Method;
6
7
use Greenplugin\TelegramBot\Method\Traits\ChatIdVariableTrait;
8
9
/**
10
 * Class SetChatStickerSetMethod.
11
 *
12
 * @see https://core.telegram.org/bots/api#setchatstickerset
13
 */
14
class SetChatStickerSetMethod
15
{
16
    use ChatIdVariableTrait;
17
18
    /**
19
     * Name of the sticker set to be set as the group sticker set.
20
     *
21
     * @var string
22
     */
23
    public $stickerSetName;
24
25
    /**
26
     * SetChatStickerSetMethod constructor.
27
     *
28
     * @param int|string $chatId
29
     * @param string     $stickerSetName
30
     */
31
    public function __construct($chatId, string $stickerSetName)
32
    {
33
        $this->chatId = $chatId;
34
        $this->stickerSetName = $stickerSetName;
35
    }
36
}
37