Passed
Push — main ( 8c6c55...1af2d8 )
by Miaad
12:23 queued 14s
created

replyParameters   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 11
c 0
b 0
f 0
dl 0
loc 47
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
 * Describes reply parameters for the message that is being sent.
9
 */
10
class replyParameters 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' => ['quote_entities' => 'BPT\types\messageEntity']];
13
14
    /**
15
     * Identifier of the message that will be replied to in the current chat, or in the chat chat_id if it is
16
     * specified
17
     */
18
    public null|int $message_id;
19
20
    /**
21
     * Optional. If the message to be replied to is from a different chat, unique identifier for the chat or username
22
     * of the channel (in the format channelusername)
23
     */
24
    public null|int $chat_id = null;
25
26
    /**
27
     * Optional. Pass True if the message should be sent even if the specified message to be replied to is not found;
28
     * can be used only for replies in the same chat and forum topic.
29
     */
30
    public null|bool $allow_sending_without_reply = null;
31
32
    /**
33
     * Optional. Quoted part of the message to be replied to; 0-1024 characters after entities parsing. The quote
34
     * must be an exact substring of the message to be replied to, including bold, italic, underline, strikethrough,
35
     * spoiler, and custom_emoji entities. The message will fail to send if the quote isn't found in the original
36
     * message.
37
     */
38
    public null|string $quote = null;
39
40
    /** Optional. Mode for parsing entities in the quote. See formatting options for more details. */
41
    public null|string $quote_parse_mode = null;
42
43
    /**
44
     * Optional. A JSON-serialized list of special entities that appear in the quote. It can be specified instead of
45
     * quote_parse_mode.
46
     * @var messageEntity[]
47
     */
48
    public null|array $quote_entities = null;
49
50
    /** Optional. Position of the quote in the original message in UTF-16 code units */
51
    public null|int $quote_position = null;
52
53
54
    public function __construct(stdClass|null $object = null) {
55
        if ($object != null) {
56
            parent::__construct($object, self::subs);
57
        }
58
    }
59
}
60