Passed
Push — main ( 104144...d23e8a )
by Miaad
10:23
created

keyboardButtonRequestUser   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 23
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 defines the criteria used to request a suitable user. The identifier of the selected user will be
9
 * shared with the bot when the corresponding button is pressed.
10
 */
11
class keyboardButtonRequestUser 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 of properties which has sub properties */
13
    private const subs = [];
14
15
    /** Signed 32-bit identifier of the request */
16
    public int $request_id;
17
18
    /**
19
     * Optional. Pass True to request a bot, pass False to request a regular user. If not specified, no additional
20
     * restrictions are applied.
21
     */
22
    public bool $user_is_bot;
23
24
    /**
25
     * Optional. Pass True to request a premium user, pass False to request a non-premium user. If not specified, no
26
     * additional restrictions are applied.
27
     */
28
    public bool $user_is_premium;
29
30
31
    public function __construct(stdClass|null $object = null) {
32
        if ($object != null) {
33
            parent::__construct($object, self::subs);
34
        }
35
    }
36
}
37