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

CellData::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 2
c 1
b 1
f 0
nc 1
nop 2
dl 0
loc 6
ccs 3
cts 3
cp 1
crap 1
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