Passed
Push — master ( 4c2b59...061776 )
by Shahrad
02:09
created

ChatMemberOwner   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 10
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 4 1
1
<?php
2
3
namespace TelegramBot\Entities\ChatMember;
4
5
use TelegramBot\Entities\User;
6
use TelegramBot\Entity;
7
8
/**
9
 * Class ChatMemberOwner
10
 *
11
 * @link https://core.telegram.org/bots/api#chatmemberowner
12
 *
13
 * @method string getStatus()       The member's status in the chat, always “creator”
14
 * @method User   getUser()         Information about the user
15
 * @method string getCustomTitle()  Custom title for this user
16
 * @method bool   getIsAnonymous()  True, if the user's presence in the chat is hidden
17
 */
18
class ChatMemberOwner 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