Passed
Push — main ( 36dc31...e0778d )
by Miaad
10:46
created

inputPollOption   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
c 1
b 0
f 0
dl 0
loc 24
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 one answer option in a poll to send.
9
 */
10
class inputPollOption 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 properties which has sub properties */
12
    private const subs = ['array' => ['text_entities' => 'BPT\types\messageEntity']];
13
14
    /** Option text, 1-100 characters */
15
    public string|null $text = null;
16
17
    /**
18
     * Optional. Mode for parsing entities in the text. See formatting options for more details. Currently, only
19
     * custom emoji entities are allowed
20
     */
21
    public string|null $text_parse_mode = null;
22
23
    /**
24
     * Optional. A JSON-serialized list of special entities that appear in the poll option text. It can be specified
25
     * instead of text_parse_mode
26
     * @var messageEntity[]
27
     */
28
    public array|null $text_entities = null;
29
30
31
    public function __construct(stdClass|null $object = null) {
32
        if ($object != null) {
33
            parent::__construct($object, self::subs);
34
        }
35
    }
36
}
37