botCommandScope   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 21
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 the scope to which bot commands are applied.
9
 * @method self setType(string $value)
10
 * @method self setChat_id(int $value)
11
 * @method self setUser_id(int $value)
12
 */
13
class botCommandScope 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...
14
    /** Keep all of properties which has sub properties */
15
    private const subs = [];
16
17
    /**
18
     * Scope type, could be `default`, `all_private_chats`, `all_group_chats`, `all_chat_administrators`, `chat`, `chat_administrators`, `chat_member`
19
     */
20
    public string $type;
21
22
    /**
23
     * `chat` and `chat_administrators` and `chat_member` only. Unique identifier for the target chat or username of the target supergroup (in the format supergroupusername)
24
     */
25
    public int $chat_id;
26
27
    /** `chat_member` only. Unique identifier of the target user */
28
    public int $user_id;
29
30
31
    public function __construct(stdClass|null $object = null) {
32
        if ($object != null) {
33
            parent::__construct($object, self::subs);
34
        }
35
    }
36
}