replyKeyboardRemove   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 6
dl 0
loc 23
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 remove the current custom keyboard and
9
 * display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent
10
 * by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a
11
 * button (see ReplyKeyboardMarkup). Not supported in channels and for messages sent on behalf of a Telegram
12
 * Business account.
13
 * @method self setRemove_keyboard(bool $value)
14
 * @method self setSelective(bool $value)
15
 */
16
class replyKeyboardRemove 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
    /**
21
     * Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to
22
     * hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
23
     */
24
    public bool $remove_keyboard;
25
26
    /**
27
     * Optional. Use this parameter if you want to remove the keyboard for specific users only. Targets: 1) users
28
     * that are mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the
29
     * same chat and forum topic, sender of the original message.Example: A user votes in a poll, bot returns
30
     * confirmation message in reply to the vote and removes the keyboard for that user, while still showing the
31
     * keyboard with poll options to users who haven't voted yet.
32
     */
33
    public bool $selective;
34
35
36
    public function __construct(stdClass|null $object = null) {
37
        if ($object != null) {
38
            parent::__construct($object, self::subs);
39
        }
40
    }
41
}
42