Passed
Push — main ( dd2f61...fe7ef9 )
by Miaad
11:01
created

switchInlineQueryChosenChat   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

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

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 an inline button that switches the current user to inline mode in a chosen chat, with
9
 * an optional default inline query.
10
 */
11
class switchInlineQueryChosenChat 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...
12
    /** Keep all properties which has sub properties */
13
    private const subs = [];
14
15
    /**
16
     * Optional. The default inline query to be inserted in the input field. If left empty, only the bot's username
17
     * will be inserted
18
     */
19
    public string $query;
20
21
    /** Optional. True, if private chats with users can be chosen */
22
    public bool $allow_user_chats;
23
24
    /** Optional. True, if private chats with bots can be chosen */
25
    public bool $allow_bot_chats;
26
27
    /** Optional. True, if group and supergroup chats can be chosen */
28
    public bool $allow_group_chats;
29
30
    /** Optional. True, if channel chats can be chosen */
31
    public bool $allow_channel_chats;
32
33
34
    public function __construct(stdClass|null $object = null) {
35
        if ($object != null) {
36
            parent::__construct($object, self::subs);
37
        }
38
    }
39
}
40