forceReply   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 7
dl 0
loc 21
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
 * Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as
9
 * if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to
10
 * create user-friendly step-by-step interfaces without having to sacrifice privacy mode. Not supported in
11
 * channels and for messages sent on behalf of a Telegram Business account.
12
 * @method self setForce_reply(bool $value)
13
 * @method self setInput_field_placeholder(string $value)
14
 * @method self setSelective(bool $value)
15
 */
16
class forceReply 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...
17
    /** Keep all properties which has sub properties */
18
    private const subs = [];
19
20
    /** Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply' */
21
    public bool $force_reply;
22
23
    /** Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters */
24
    public string $input_field_placeholder;
25
26
    /**
27
     * Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are
28
     * mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat
29
     * and forum topic, sender of the original message.
30
     */
31
    public bool $selective;
32
33
34
    public function __construct(stdClass|null $object = null) {
35
        if ($object != null) {
36
            parent::__construct($object, self::subs);
37
        }
38
    }
39
}
40