textQuote::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 2
c 1
b 0
f 0
nc 2
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace BPT\types;
4
5
use stdClass;
6
7
/**
8
 * This object contains information about the quoted part of a message that is replied to by the given message.
9
 */
10
class textQuote 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' => ['entities' => 'BPT\types\messageEntity']];
13
14
    /** Text of the quoted part of a message that is replied to by the given message */
15
    public string $text;
16
17
    /**
18
     * Optional. Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough,
19
     * spoiler, and custom_emoji entities are kept in quotes.
20
     * @var messageEntity[]
21
     */
22
    public null|array $entities = null;
23
24
    /** Approximate quote position in the original message in UTF-16 code units as specified by the sender */
25
    public int $position;
26
27
    /**
28
     * Optional. True, if the quote was chosen manually by the message sender. Otherwise, the quote was added
29
     * automatically by the server.
30
     */
31
    public null|bool $is_manual = null;
32
33
34
    public function __construct(stdClass|null $object = null) {
35
        if ($object != null) {
36
            parent::__construct($object, self::subs);
37
        }
38
    }
39
}
40