ChatInviteLink   A
last analyzed

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 3
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of the TelegramBot package.
5
 *
6
 * (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Longman\TelegramBot\Entities;
13
14
/**
15
 * Class ChatInviteLink
16
 *
17
 * Represents an invite link for a chat
18
 *
19
 * @link https://core.telegram.org/bots/api#chatinvitelink
20
 *
21
 * @method string  getInviteLink()              The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with “…”
22
 * @method User    getCreator()                 Creator of the link
23
 * @method bool    getCreatesJoinRequest()      True, if users joining the chat via the link need to be approved by chat administrators
24
 * @method bool    getIsPrimary()               True, if the link is primary
25
 * @method bool    getIsRevoked()               True, if the link is revoked
26
 * @method string  getName()                    Optional. Invite link name
27
 * @method int     getExpireDate()              Optional. Point in time (Unix timestamp) when the link will expire or has been expired
28
 * @method int     getMemberLimit()             Optional. Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
29
 * @method int     getPendingJoinRequestCount() Optional. Number of pending join requests created using this link
30
 */
31
class ChatInviteLink extends Entity
32
{
33
    /**
34
     * {@inheritdoc}
35
     */
36
    protected function subEntities(): array
37
    {
38
        return [
39
            'creator' => User::class,
40
        ];
41
    }
42
}
43