Passed
Push — main ( 4af278...3f64e8 )
by Miaad
01:24
created

replyKeyboardRemove   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 22
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
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).
12
 */
13
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...
14
	/** Keep all of properties which has sub properties */
15
	private const subs = [];
16
17
	/**
18
	 * Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to
19
	 * hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)
20
	 */
21
	public bool $remove_keyboard;
22
23
	/**
24
	 * Optional. Use this parameter if you want to remove the keyboard for specific users only. Targets: 1) users
25
	 * that are mentioned in the text of the Message object; 2) if the bot's message is a reply (has
26
	 * reply_to_message_id), sender of the original message.Example: A user votes in a poll, bot returns confirmation
27
	 * message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with
28
	 * poll options to users who haven't voted yet.
29
	 */
30
	public bool $selective;
31
32
33
	public function __construct(stdClass $update) {
34
		parent::__construct($update, self::subs);
35
	}
36
}
37