chatPermissions::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
1
<?php
2
3
namespace BPT\types;
4
5
use stdClass;
6
7
/**
8
 * Describes actions that a non-administrator user is allowed to take in a chat.
9
 * @method self setCan_send_messages(bool $value)
10
 * @method self setCan_send_audios(bool $value)
11
 * @method self setCan_send_documents(bool $value)
12
 * @method self setCan_send_photos(bool $value)
13
 * @method self setCan_send_videos(bool $value)
14
 * @method self setCan_send_video_notes(bool $value)
15
 * @method self setCan_send_voice_notes(bool $value)
16
 * @method self setCan_send_polls(bool $value)
17
 * @method self setCan_send_other_messages(bool $value)
18
 * @method self setCan_add_web_page_previews(bool $value)
19
 * @method self setCan_change_info(bool $value)
20
 * @method self setCan_invite_users(bool $value)
21
 * @method self setCan_pin_messages(bool $value)
22
 * @method self setCan_manage_topics(bool $value)
23
 */
24
class chatPermissions 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...
25
    /** Keep all properties which has sub properties */
26
    private const subs = [];
27
28
    /**
29
     * Optional. True, if the user is allowed to send text messages, contacts, giveaways, giveaway winners, invoices,
30
     * locations and venues
31
     */
32
    public bool $can_send_messages;
33
34
    /** Optional. True, if the user is allowed to send audios */
35
    public bool $can_send_audios;
36
37
    /** Optional. True, if the user is allowed to send documents */
38
    public bool $can_send_documents;
39
40
    /** Optional. True, if the user is allowed to send photos */
41
    public bool $can_send_photos;
42
43
    /** Optional. True, if the user is allowed to send videos */
44
    public bool $can_send_videos;
45
46
    /** Optional. True, if the user is allowed to send video notes */
47
    public bool $can_send_video_notes;
48
49
    /** Optional. True, if the user is allowed to send voice notes */
50
    public bool $can_send_voice_notes;
51
52
    /** Optional. True, if the user is allowed to send polls */
53
    public bool $can_send_polls;
54
55
    /** Optional. True, if the user is allowed to send animations, games, stickers and use inline bots */
56
    public bool $can_send_other_messages;
57
58
    /** Optional. True, if the user is allowed to add web page previews to their messages */
59
    public bool $can_add_web_page_previews;
60
61
    /**
62
     * Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public
63
     * supergroups
64
     */
65
    public bool $can_change_info;
66
67
    /** Optional. True, if the user is allowed to invite new users to the chat */
68
    public bool $can_invite_users;
69
70
    /** Optional. True, if the user is allowed to pin messages. Ignored in public supergroups */
71
    public bool $can_pin_messages;
72
73
    /**
74
     * Optional. True, if the user is allowed to create forum topics. If omitted defaults to the value of
75
     * can_pin_messages
76
     */
77
    public bool $can_manage_topics;
78
79
80
    public function __construct(stdClass|null $object = null) {
81
        if ($object != null) {
82
            parent::__construct($object, self::subs);
83
        }
84
    }
85
}
86