Passed
Push — extents ( f35511...ba1d5f )
by Doug
61:44
created

GridValues::getX()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
/**
3
 * PHPCoord.
4
 *
5
 * @author Doug Wright
6
 */
7
declare(strict_types=1);
8
9
namespace PHPCoord\CoordinateOperation;
10
11
/**
12
 * @internal
13
 */
14
class GridValues
15
{
16
    private float $x;
17
    private float $y;
18
    private array $values;
19
20
    public function __construct(float $x, float $y, array $values)
21
    {
22
        $this->x = $x;
23
        $this->y = $y;
24
        $this->values = $values;
25
    }
26
27
    public function getX(): float
28
    {
29
        return $this->x;
30
    }
31
32
    public function getY(): float
33
    {
34
        return $this->y;
35
    }
36
37
    public function getValues(): array
38
    {
39
        return $this->values;
40
    }
41
}
42