Passed
Push — master ( fd93b5...48e916 )
by Doug
40:26 queued 29:39
created

GridValues::getY()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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 27
    public function __construct(float $x, float $y, array $values)
21
    {
22 27
        $this->x = $x;
23 27
        $this->y = $y;
24 27
        $this->values = $values;
25 27
    }
26
27 27
    public function getX(): float
28
    {
29 27
        return $this->x;
30
    }
31
32 27
    public function getY(): float
33
    {
34 27
        return $this->y;
35
    }
36
37 27
    public function getValues(): array
38
    {
39 27
        return $this->values;
40
    }
41
}
42