ChatMemberRestricted   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 10
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A subEntities() 0 4 1
1
<?php
2
3
namespace TelegramBot\Entities\ChatMember;
4
5
use TelegramBot\Entities\User;
6
use TelegramBot\Entity;
7
8
/**
9
 * Class ChatMemberRestricted
10
 *
11
 * @link https://core.telegram.org/bots/api#chatmemberrestricted
12
 *
13
 * @method string getStatus()                   The member's status in the chat, always “restricted”
14
 * @method User   getUser()                     Information about the user
15
 * @method bool   getIsMember()                 True, if the user is a member of the chat at the moment of the request
16
 * @method bool   getCanChangeInfo()            True, if the user is allowed to change the chat title, photo and other settings
17
 * @method bool   getCanInviteUsers()           True, if the user is allowed to invite new users to the chat
18
 * @method bool   getCanPinMessages()           True, if the user is allowed to pin messages;
19
 * groups and supergroups only
20
 * @method bool   getCanSendMessages()          True, if the user is allowed to send text messages, contacts, locations and venues
21
 * @method bool   getCanSendMediaMessages()     True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes
22
 * @method bool   getCanSendPolls()             True, if the user is allowed to send polls
23
 * @method bool   getCanSendOtherMessages()     True, if the user is allowed to send animations, games, stickers and use inline bots
24
 * @method bool   getCanAddWebPagePreviews()    True, if the user is allowed to add web page previews to their messages
25
 * @method int    getUntilDate()                Date when restrictions will be lifted for this user;
26
 * unix time
27
 */
28
class ChatMemberRestricted extends Entity implements ChatMember
29
{
30
31
    /**
32
     * @inheritDoc
33
     */
34
    protected function subEntities(): array
35
    {
36
        return [
37
            'user' => User::class,
38
        ];
39
    }
40
41
}
42