Passed
Push — main ( 23165f...4af278 )
by Miaad
01:25
created

inlineQueryResultCachedSticker   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 10
dl 0
loc 25
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
 * Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the
9
 * user. Alternatively, you can use input_message_content to send a message with the specified content instead of
10
 * the sticker.
11
 */
12
class inlineQueryResultCachedSticker 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...
13
	/** Keep all of properties which has sub properties */
14
	private const subs = [
15
		'reply_markup' => 'BPT\types\inlineKeyboardMarkup',
16
		'input_message_content' => 'BPT\types\inputMessageContent',
17
	];
18
19
	/** Type of the result, must be sticker */
20
	public string $type;
21
22
	/** Unique identifier for this result, 1-64 bytes */
23
	public string $id;
24
25
	/** A valid file identifier of the sticker */
26
	public string $sticker_file_id;
27
28
	/** Optional. Inline keyboard attached to the message */
29
	public inlineKeyboardMarkup $reply_markup;
30
31
	/** Optional. Content of the message to be sent instead of the sticker */
32
	public inputMessageContent $input_message_content;
33
34
35
	public function __construct(stdClass $update) {
36
		parent::__construct($update, self::subs);
37
	}
38
}
39