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

GridValues   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 26
ccs 11
cts 11
cp 1
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getValues() 0 3 1
A getY() 0 3 1
A getX() 0 3 1
A __construct() 0 5 1
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