BotCommandScopeAllGroupChats   A
last analyzed

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 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