replyParameters   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 11
c 0
b 0
f 0
dl 0
loc 49
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). Not supported for messages sent on behalf of a business
23
     * account.
24
     */
25
    public null|int $chat_id = null;
26
27
    /**
28
     * Optional. Pass True if the message should be sent even if the specified message to be replied to is not found.
29
     * Always False for replies in another chat or forum topic. Always True for messages sent on behalf of a business
30
     * account.
31
     */
32
    public null|bool $allow_sending_without_reply = null;
33
34
    /**
35
     * Optional. Quoted part of the message to be replied to; 0-1024 characters after entities parsing. The quote
36
     * must be an exact substring of the message to be replied to, including bold, italic, underline, strikethrough,
37
     * spoiler, and custom_emoji entities. The message will fail to send if the quote isn't found in the original
38
     * message.
39
     */
40
    public null|string $quote = null;
41
42
    /** Optional. Mode for parsing entities in the quote. See formatting options for more details. */
43
    public null|string $quote_parse_mode = null;
44
45
    /**
46
     * Optional. A JSON-serialized list of special entities that appear in the quote. It can be specified instead of
47
     * quote_parse_mode.
48
     * @var messageEntity[]
49
     */
50
    public null|array $quote_entities = null;
51
52
    /** Optional. Position of the quote in the original message in UTF-16 code units */
53
    public null|int $quote_position = null;
54
55
56
    public function __construct(stdClass|null $object = null) {
57
        if ($object != null) {
58
            parent::__construct($object, self::subs);
59
        }
60
    }
61
}
62