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

ChatMemberLeft   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
4
namespace Longman\TelegramBot\Entities\ChatMember;
5
6
7
use Longman\TelegramBot\Entities\Entity;
8
use Longman\TelegramBot\Entities\User;
9
10
/**
11
 * Class ChatMemberLeft
12
 *
13
 * @link https://core.telegram.org/bots/api#chatmemberleft
14
 *
15
 * @method string getStatus() The member's status in the chat, always “left”
16
 * @method User   getUser()   Information about the user
17
 */
18
class ChatMemberLeft extends Entity implements ChatMember
19
{
20
    /**
21
     * @inheritDoc
22
     */
23
    protected function subEntities(): array
24
    {
25
        return [
26
            'user' => User::class
27
        ];
28
    }
29
30
}
31