ChatMember   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 12
ccs 0
cts 6
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 6 1
1
<?php
2
/**
3
 * This file is part of the TelegramBot package.
4
 *
5
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Longman\TelegramBot\Entities;
12
13
/**
14
 * Class ChatMember
15
 *
16
 * @link https://core.telegram.org/bots/api#chatmember
17
 *
18
 * @method User   getUser()   Information about the user.
19
 * @method string getStatus() The member's status in the chat. Can be "creator", "administrator", "member", "left" or "kicked"
20
 */
21
class ChatMember extends Entity
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function subEntities()
27
    {
28
        return [
29
            'user' => User::class,
30
        ];
31
    }
32
}
33