maskPosition   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 8
dl 0
loc 29
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 2
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
 * @method self setPoint(string $value)
10
 * @method self setX_shift(float $value)
11
 * @method self setY_shift(float $value)
12
 * @method self setScale(float $value)
13
 */
14
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...
15
    /** Keep all of properties which has sub properties */
16
    private const subs = [];
17
18
    /**
19
     * The part of the face relative to which the mask should be placed. One of “forehead”, “eyes”,
20
     * “mouth”, or “chin”.
21
     */
22
    public string $point;
23
24
    /**
25
     * Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example,
26
     * choosing -1.0 will place mask just to the left of the default mask position.
27
     */
28
    public float $x_shift;
29
30
    /**
31
     * Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0
32
     * will place the mask just below the default mask position.
33
     */
34
    public float $y_shift;
35
36
    /** Mask scaling coefficient. For example, 2.0 means double size. */
37
    public float $scale;
38
39
40
    public function __construct(stdClass|null $object = null) {
41
        if ($object != null) {
42
            parent::__construct($object, self::subs);
43
        }
44
    }
45
}
46