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

ChatMemberBanned   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 4 1
1
<?php
2
3
namespace Longman\TelegramBot\Entities\ChatMember;
4
5
use Longman\TelegramBot\Entities\Entity;
6
use Longman\TelegramBot\Entities\User;
7
8
/**
9
 * Class ChatMemberBanned
10
 *
11
 * @link https://core.telegram.org/bots/api#chatmemberbanned
12
 *
13
 * @method string getStatus()    The member's status in the chat, always “kicked”
14
 * @method User   getUser()      Information about the user
15
 * @method int    getUntilDate() Date when restrictions will be lifted for this user; unix time
16
 */
17
class ChatMemberBanned extends Entity implements ChatMember
18
{
19
    /**
20
     * @inheritDoc
21
     */
22
    protected function subEntities(): array
23
    {
24
        return [
25
            'user' => User::class
26
        ];
27
    }
28
}
29