Passed
Push — main ( 8c6c55...1af2d8 )
by Miaad
12:23 queued 14s
created

keyboardButtonRequestUsers   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
c 0
b 0
f 0
dl 0
loc 29
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 suitable users. The identifiers of the selected users will be
9
 * shared with the bot when the corresponding button is pressed. More about requesting users »
10
 */
11
class keyboardButtonRequestUsers 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
     * Signed 32-bit identifier of the request that will be received back in the UsersShared object. Must be unique
17
     * within the message
18
     */
19
    public int $request_id;
20
21
    /**
22
     * Optional. Pass True to request bots, pass False to request regular users. If not specified, no additional
23
     * restrictions are applied.
24
     */
25
    public null|bool $user_is_bot = null;
26
27
    /**
28
     * Optional. Pass True to request premium users, pass False to request non-premium users. If not specified, no
29
     * additional restrictions are applied.
30
     */
31
    public null|bool $user_is_premium = null;
32
33
    /** Optional. The maximum number of users to be selected; 1-10. Defaults to 1. */
34
    public null|int $max_quantity = null;
35
36
37
    public function __construct(stdClass|null $object = null) {
38
        if ($object != null) {
39
            parent::__construct($object, self::subs);
40
        }
41
    }
42
}
43