Passed
Push — master ( 163ca3...6d62ea )
by Armando
01:57
created

BotCommandScopeDefault::__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 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 4
ccs 0
cts 3
cp 0
crap 2
rs 10
1
<?php
2
3
namespace Longman\TelegramBot\Entities\BotCommandScope;
4
5
use Longman\TelegramBot\Entities\Entity;
6
use Longman\TelegramBot\Entities\InputMedia\InputMediaAnimation;
7
8
/**
9
 * Class BotCommandScopeDefault
10
 *
11
 * @link https://core.telegram.org/bots/api#botcommandscopedefault
12
 */
13
class BotCommandScopeDefault extends Entity implements BotCommandScope
14
{
15
    public function __construct(array $data = [])
16
    {
17
        $data['type'] = 'default';
18
        parent::__construct($data);
19
    }
20
}
21