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