Passed
Push — master ( 6b02b9...a180a6 )
by Nico
26:39 queued 18:43
created

LssCellData::getSubspaceCode()   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 0
Metric Value
cc 1
eloc 1
c 0
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
declare(strict_types=1);
4
5
namespace Stu\Lib\Map\VisualPanel;
6
7
class LssCellData
8
{
9
    private ?string $systemBackgroundId = null;
10
    private ?int $fieldGraphicId = null;
11
    private ?string $mapGraphicPath = null;
12
    private bool $colonyShieldState = false;
13
    private ?string $subspaceCode = null;
14
    private ?string $displayCount = null;
15
16 4
    public function __construct(
17
        ?string $systemBackgroundId,
18
        ?int $fieldGraphicId,
19
        ?string $mapGraphicPath,
20
        bool $colonyShieldState,
21
        ?string $subspaceCode,
22
        ?string $displayCount
23
    ) {
24 4
        $this->systemBackgroundId = $systemBackgroundId;
25 4
        $this->fieldGraphicId = $fieldGraphicId;
26 4
        $this->mapGraphicPath = $mapGraphicPath;
27 4
        $this->colonyShieldState = $colonyShieldState;
28 4
        $this->subspaceCode = $subspaceCode;
29 4
        $this->displayCount = $displayCount;
30
    }
31
32 4
    public function getSystemBackgroundId(): ?string
33
    {
34 4
        return $this->systemBackgroundId;
35
    }
36
37
    public function getFieldGraphicID(): ?int
38
    {
39
        return $this->fieldGraphicId;
40
    }
41
42 4
    public function getMapGraphicPath(): ?string
43
    {
44 4
        return $this->mapGraphicPath;
45
    }
46
47 4
    public function getColonyShieldState(): bool
48
    {
49 4
        return $this->colonyShieldState;
50
    }
51
52 4
    public function getSubspaceCode(): ?string
53
    {
54 4
        return $this->subspaceCode;
55
    }
56
57
    public function getDisplayCount(): ?string
58
    {
59
        return $this->displayCount;
60
    }
61
}
62