Passed
Push — main ( 32f684...3dc3bc )
by Miaad
01:31
created

chatMemberUpdated   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 15
c 1
b 0
f 0
dl 0
loc 35
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 2
1
<?php
2
3
namespace BPT\types;
4
5
use stdClass;
6
7
/**
8
 * This object represents changes in the status of a chat member.
9
 */
10
class chatMemberUpdated extends types {
0 ignored issues
show
Bug introduced by
The type BPT\types\types was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
11
    /** Keep all of properties which has sub properties */
12
    private const subs = [
13
        'chat' => 'BPT\types\chat',
14
        'from' => 'BPT\types\user',
15
        'old_chat_member' => 'BPT\types\chatMember',
16
        'new_chat_member' => 'BPT\types\chatMember',
17
        'invite_link' => 'BPT\types\chatInviteLink',
18
    ];
19
20
    /** Chat the user belongs to */
21
    public chat $chat;
22
23
    /** Performer of the action, which resulted in the change */
24
    public user $from;
25
26
    /** Date the change was done in Unix time */
27
    public int $date;
28
29
    /** Previous information about the chat member */
30
    public chatMember $old_chat_member;
31
32
    /** New information about the chat member */
33
    public chatMember $new_chat_member;
34
35
    /**
36
     * Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events
37
     * only.
38
     */
39
    public chatInviteLink $invite_link;
40
41
42
    public function __construct(stdClass|null $object = null) {
43
        if ($object != null) {
44
            parent::__construct($object, self::subs);
45
        }
46
    }
47
}
48