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

game   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 9
dl 0
loc 29
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
 * This object represents a game. Use BotFather to create and edit games, their short names will act as unique
9
 * identifiers.
10
 */
11
class game 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...
12
	/** Keep all of properties which has sub properties */
13
	private const subs = ['animation' => 'BPT\types\animation'];
14
15
	/** Title of the game */
16
	public string $title;
17
18
	/** Description of the game */
19
	public string $description;
20
21
	/** Photo that will be displayed in the game message in chats. */
22
	public array $photo;
23
24
	/**
25
	 * Optional. Brief description of the game or high scores included in the game message. Can be automatically
26
	 * edited to include current high scores for the game when the bot calls setGameScore, or manually edited using
27
	 * editMessageText. 0-4096 characters.
28
	 */
29
	public string $text;
30
31
	/** Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc. */
32
	public array $text_entities;
33
34
	/** Optional. Animation that will be displayed in the game message in chats. Upload via BotFather */
35
	public animation $animation;
36
37
38
	public function __construct(stdClass $update) {
39
		parent::__construct($update, self::subs);
40
	}
41
}
42