responseParameters::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
1
<?php
2
3
namespace BPT\types;
4
5
use stdClass;
6
7
/**
8
 * Describes why a request was unsuccessful.
9
 */
10
class responseParameters 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...
11
    /** Keep all of properties which has sub properties */
12
    private const subs = [];
13
14
    /**
15
     * Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more
16
     * than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it.
17
     * But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for
18
     * storing this identifier.
19
     */
20
    public null|int $migrate_to_chat_id = null;
21
22
    /**
23
     * Optional. In case of exceeding flood control, the number of seconds left to wait before the request can be
24
     * repeated
25
     */
26
    public null|int $retry_after = null;
27
28
29
    public function __construct(stdClass|null $object = null) {
30
        if ($object != null) {
31
            parent::__construct($object, self::subs);
32
        }
33
    }
34
}
35