GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 0f20ce...679695 )
by Jazin
10:17 queued 12s
created

BotCommandScopeChatAdministrators::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 1
b 0
f 1
1
<?php
2
3
namespace Longman\TelegramBot\Entities\BotCommandScope;
4
5
use Longman\TelegramBot\Entities\Entity;
6
7
/**
8
 * Class BotCommandScopeChatAdministrators
9
 *
10
 * @link https://core.telegram.org/bots/api#botcommandscopechatadministrators
11
 *
12
 * <code>
13
 * $data = [
14
 *   'chat_id' => '123456'
15
 * ];
16
 * </code>
17
 *
18
 * @method string getType()   Scope type, must be chat_administrators
19
 * @method string getChatId() Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
20
 *
21
 * @method $this setChatId(string $chat_id) Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
22
 */
23
class BotCommandScopeChatAdministrators extends Entity implements BotCommandScope
24
{
25
    public function __construct(array $data = [])
26
    {
27
        $data['type'] = 'chat_administrators';
28
        parent::__construct($data);
29
    }
30
}
31