Rotation   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
dl 0
loc 37
c 0
b 0
f 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getY() 0 3 1
A getZ() 0 3 1
A __construct() 0 5 1
A getX() 0 3 1
1
<?php
2
3
namespace XSolve\FaceValidatorBundle\Result;
4
5
class Rotation
6
{
7
    /**
8
     * @var float
9
     */
10
    private $x;
11
12
    /**
13
     * @var float
14
     */
15
    private $y;
16
17
    /**
18
     * @var float
19
     */
20
    private $z;
21
22
    public function __construct(float $x, float $y, float $z)
23
    {
24
        $this->x = $x;
25
        $this->y = $y;
26
        $this->z = $z;
27
    }
28
29
    public function getX(): float
30
    {
31
        return $this->x;
32
    }
33
34
    public function getY(): float
35
    {
36
        return $this->y;
37
    }
38
39
    public function getZ(): float
40
    {
41
        return $this->z;
42
    }
43
}
44