MenuButtonDefault::__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\MenuButton;
4
5
/**
6
 * Describes that no specific value for the menu button was set.
7
 */
8
class MenuButtonDefault extends MenuButton
9
{
10
11
    public function __construct(array $data)
12
    {
13
        $data['type'] = 'default';
14
        parent::__construct($data);
15
    }
16
17
}
18