Passed
Push — master ( 4c2b59...061776 )
by Shahrad
02:09
created

BotCommandScopeChatAdministrators   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 7
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace TelegramBot\Entities\BotCommandScope;
4
5
use TelegramBot\Entity;
6
7
/**
8
 * Class BotCommandScopeChatAdministrators
9
 *
10
 * @link https://core.telegram.org/bots/api#botcommandscopechatadministrators
11
 *
12
 * <code>
13
 * $data = [
14
 *   'chat_id' => '123456'
15
 * ];
16
 * </code>
17
 *
18
 * @method string getType()   Scope type, must be chat_administrators
19
 * @method string getChatId() Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
20
 *
21
 * @method $this setChatId(string $chat_id) Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
22
 */
23
class BotCommandScopeChatAdministrators extends Entity implements BotCommandScope
24
{
25
26
    public function __construct(array $data = [])
27
    {
28
        $data['type'] = 'chat_administrators';
29
        parent::__construct($data);
30
    }
31
32
}
33