Passed
Push — master ( dd634a...4d5ddd )
by Petr
02:10
created

Location::getBiom()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Vehsamrak\Terraformator\Entity;
4
5
use Vehsamrak\Terraformator\Enum\Biom;
6
use Vehsamrak\Terraformator\Enum\LocationType;
7
8
/**
9
 * @author Vehsamrak
10
 */
11
class Location
12
{
13
14
    /** @var int */
15
    private $x;
16
    /** @var int */
17
    private $y;
18
    /** @var LocationType */
19
    private $type;
20
    /** @var Biom */
21
    private $biom;
22
23 2
    public function __construct(int $x, int $y, LocationType $type, Biom $biom)
24
    {
25 2
        $this->x = $x;
26 2
        $this->y = $y;
27 2
        $this->type = $type;
28 2
        $this->biom = $biom;
29 2
    }
30
31
    public function getBiom(): Biom
32
    {
33
        return $this->biom;
34
    }
35
}
36