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

UnbanChatMemberMethod   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 15
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
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