Passed
Push — master ( 1b1236...bd5fab )
by Nikolay
01:00 queued 15s
created

GetMyCommandsMethod   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 2
c 1
b 0
f 1
dl 0
loc 5
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace TgBotApi\BotApiBase\Method;
6
7
use TgBotApi\BotApiBase\Method\Interfaces\MethodInterface;
8
9
/**
10
 * Class GetMyCommandsMethod.
11
 *
12
 * Use this method to get the current list of the bot's commands.
13
 * Requires no parameters. Returns Array of BotCommandType on success.
14
 *
15
 * @see https://core.telegram.org/bots/api#getmycommands
16
 */
17
class GetMyCommandsMethod implements MethodInterface
18
{
19 1
    public static function create(): GetMyCommandsMethod
20
    {
21 1
        return new static();
22
    }
23
}
24