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

UnbanChatMemberMethod::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Greenplugin\TelegramBot\Method;
6
7
use Greenplugin\TelegramBot\Method\Traits\ChatIdVariableTrait;
8
use Greenplugin\TelegramBot\Method\Traits\UserIdVariableTrait;
9
10
/**
11
 * Class UnbanChatMemberMethod.
12
 *
13
 * @see https://core.telegram.org/bots/api#unbanchatmember
14
 */
15
class UnbanChatMemberMethod
16
{
17
    use ChatIdVariableTrait;
18
    use UserIdVariableTrait;
19
20
    /**
21
     * UnbanChatMemberMethod constructor.
22
     *
23
     * @param int|string $chatId
24
     * @param int        $userId
25
     */
26
    public function __construct($chatId, int $userId)
27
    {
28
        $this->chatId = $chatId;
29
        $this->userId = $userId;
30
    }
31
}
32