Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
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 |
||
37 | } |
||
38 | |||
39 | public function getZ(): float |
||
42 | } |
||
43 | } |
||
44 |