ChatJoinRequest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 8
ccs 0
cts 5
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 6 1
1
<?php
2
3
namespace Longman\TelegramBot\Entities;
4
5
/**
6
 * Class ChatJoinRequest
7
 *
8
 * Represents a join request sent to a chat.
9
 *
10
 * @link https://core.telegram.org/bots/api#chatjoinrequest
11
 *
12
 * @method Chat           getChat()       Chat to which the request was sent
13
 * @method User           getFrom()       User that sent the join request
14
 * @method int            getUserChatId() Identifier of a private chat with the user who sent the join request.
15
 * @method int            getDate()       Date the request was sent in Unix time
16
 * @method string         getBio()        Optional. Bio of the user.
17
 * @method ChatInviteLink getInviteLink() Optional. Chat invite link that was used by the user to send the join request
18
 */
19
class ChatJoinRequest extends Entity
20
{
21
    protected function subEntities(): array
22
    {
23
        return [
24
            'chat'        => Chat::class,
25
            'from'        => User::class,
26
            'invite_link' => ChatInviteLink::class,
27
        ];
28
    }
29
}
30