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

maskPosition   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 28
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 describes the position on faces where a mask should be placed by default.
9
 */
10
class maskPosition 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...
11
	/** Keep all of properties which has sub properties */
12
	private const subs = [];
13
14
	/**
15
	 * The part of the face relative to which the mask should be placed. One of “forehead”, “eyes”,
16
	 * “mouth”, or “chin”.
17
	 */
18
	public string $point;
19
20
	/**
21
	 * Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example,
22
	 * choosing -1.0 will place mask just to the left of the default mask position.
23
	 */
24
	public float $x_shift;
25
26
	/**
27
	 * Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0
28
	 * will place the mask just below the default mask position.
29
	 */
30
	public float $y_shift;
31
32
	/** Mask scaling coefficient. For example, 2.0 means double size. */
33
	public float $scale;
34
35
36
	public function __construct(stdClass $update) {
37
		parent::__construct($update, self::subs);
38
	}
39
}
40