Passed
Pull Request — develop (#1229)
by
unknown
02:45
created

ChatMemberOwner::subEntities()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
3
4
namespace Longman\TelegramBot\Entities\ChatMember;
5
6
7
use Longman\TelegramBot\Entities\Entity;
8
use Longman\TelegramBot\Entities\User;
9
10
/**
11
 * Class ChatMemberOwner
12
 *
13
 * @link https://core.telegram.org/bots/api#chatmemberowner
14
 *
15
 * @method string getStatus()      The member's status in the chat, always “creator”
16
 * @method User   getUser()        Information about the user
17
 * @method string getCustomTitle() Custom title for this user
18
 * @method bool   getIsAnonymous() True, if the user's presence in the chat is hidden
19
 */
20
class ChatMemberOwner extends Entity implements ChatMember
21
{
22
    /**
23
     * {@inheritdoc}
24
     */
25
    protected function subEntities(): array
26
    {
27
        return [
28
            'user' => User::class,
29
        ];
30
    }
31
32
}
33