Passed
Push — master ( 55cfd1...cb4d54 )
by Nico
22:41
created

SignaturePanelEntry::getCode()   A

Complexity

Conditions 6
Paths 6

Size

Total Lines 20
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 10.5

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 6
eloc 11
c 1
b 0
f 0
nc 6
nop 1
dl 0
loc 20
ccs 6
cts 12
cp 0.5
crap 10.5
rs 9.2222
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Stu\Lib\Map\VisualPanel;
6
7
use Stu\Lib\Map\VisualPanel\Layer\PanelLayers;
8
9
class SignaturePanelEntry implements VisualPanelElementInterface
10
{
11
    protected int $x;
12
13
    protected int $y;
14
15
    protected PanelLayers $layers;
16
17
    private string $cssClass = 'lss';
18
19 3
    public function __construct(
20
        int $x,
21
        int $y,
22
        PanelLayers $layers,
23
    ) {
24 3
        $this->x = $x;
25 3
        $this->y = $y;
26 3
        $this->layers = $layers;
27
    }
28
29
    /** @return array<string> */
30 1
    public function getRenderedCellLayers(): array
31
    {
32 1
        return $this->layers->getRenderedCellLayers($this->x, $this->y);
33
    }
34
35 1
    public function getBorder(): string
36
    {
37 1
        return $this->layers->getCellBorder($this->x, $this->y);
38
    }
39
40 1
    public function getCssClass(): string
41
    {
42 1
        return $this->cssClass;
43
    }
44
}
45