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

botCommandScopeDefault   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 10
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 the default scope of bot commands. Default commands are used if no commands with a narrower scope
9
 * are specified for the user.
10
 */
11
class botCommandScopeDefault 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 = [];
14
15
	/** Scope type, must be default */
16
	public string $type;
17
18
19
	public function __construct(stdClass $update) {
20
		parent::__construct($update, self::subs);
21
	}
22
}
23