BotCommandScopeAllGroupChats::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace TelegramBot\Entities\BotCommandScope;
4
5
use TelegramBot\Entity;
6
7
/**
8
 * Class BotCommandScopeAllGroupChats
9
 *
10
 * @link https://core.telegram.org/bots/api#botcommandscopeallgroupchats
11
 */
12
class BotCommandScopeAllGroupChats extends Entity implements BotCommandScope
13
{
14
15
    public function __construct(array $data = [])
16
    {
17
        $data['type'] = 'all_group_chats';
18
        parent::__construct($data);
19
    }
20
21
}
22