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

chatShared   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 20
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 contains information about the chat whose identifier was shared with the bot using a
9
 * KeyboardButtonRequestChat button.
10
 */
11
class chatShared 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
    /** Identifier of the request */
16
    public int $request_id;
17
18
    /**
19
     * Identifier of the shared chat. This number may have more than 32 significant bits and some programming
20
     * languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a
21
     * 64-bit integer or double-precision float type are safe for storing this identifier. The bot may not have
22
     * access to the chat and could be unable to use this identifier, unless the chat is already known to the bot by
23
     * some other means.
24
     */
25
    public int $chat_id;
26
27
28
    public function __construct(stdClass|null $object = null) {
29
        if ($object != null) {
30
            parent::__construct($object, self::subs);
31
        }
32
    }
33
}
34