ChatMemberBanned::subEntities()   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 0
1
<?php
2
3
namespace TelegramBot\Entities\ChatMember;
4
5
use TelegramBot\Entities\User;
6
use TelegramBot\Entity;
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;
16
 * unix time
17
 */
18
class ChatMemberBanned extends Entity implements ChatMember
19
{
20
21
    /**
22
     * @inheritDoc
23
     */
24
    protected function subEntities(): array
25
    {
26
        return [
27
            'user' => User::class,
28
        ];
29
    }
30
31
}
32