Passed
Push — master ( 95eee2...124208 )
by Nico
15:21 queued 07:35
created

CellData::getSubspaceCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
c 1
b 1
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Stu\Lib\Map\VisualPanel;
6
7
abstract class CellData
8
{
9
    private ?string $subspaceCode;
10
    private ?string $displayCount;
11
12 6
    public function __construct(
13
        ?string $subspaceCode,
14
        ?string $displayCount
15
    ) {
16 6
        $this->subspaceCode = $subspaceCode;
17 6
        $this->displayCount = $displayCount;
18
    }
19
20
    public function getSubspaceCode(): ?string
21
    {
22
        return $this->subspaceCode;
23
    }
24
25
    public function getDisplayCount(): ?string
26
    {
27
        return $this->displayCount;
28
    }
29
}
30