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

CellData   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 42.86%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 7
c 1
b 1
f 0
dl 0
loc 21
ccs 3
cts 7
cp 0.4286
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getDisplayCount() 0 3 1
A __construct() 0 6 1
A getSubspaceCode() 0 3 1
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