chosenInlineResult   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 9
dl 0
loc 26
rs 10
c 0
b 0
f 0

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
 * Represents a result of an inline query that was chosen by the user and sent to their chat partner.
9
 */
10
class chosenInlineResult 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 = ['from' => 'BPT\types\user', 'location' => 'BPT\types\location'];
13
14
    /** The unique identifier for the result that was chosen */
15
    public string $result_id;
16
17
    /** The user that chose the result */
18
    public user $from;
19
20
    /** Optional. Sender location, only for bots that require user location */
21
    public null|location $location = null;
22
23
    /**
24
     * Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the
25
     * message. Will be also received in callback queries and can be used to edit the message.
26
     */
27
    public null|string $inline_message_id = null;
28
29
    /** The query that was used to obtain the result */
30
    public string $query;
31
32
33
    public function __construct(stdClass|null $object = null) {
34
        if ($object != null) {
35
            parent::__construct($object, self::subs);
36
        }
37
    }
38
}
39