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

VisualPanelRow::getY()   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 VisualPanelRow
8
{
9
    private int $y;
10
11
    /** @var array<VisualPanelElementInterface>  */
12
    private array $entries;
13
14 1
    public function __construct(int $y)
15
    {
16 1
        $this->y = $y;
17
    }
18
19 1
    public function getY(): int
20
    {
21 1
        return $this->y;
22
    }
23
24 1
    public function addEntry(VisualPanelElementInterface $element): void
25
    {
26 1
        $this->entries[] = $element;
27
    }
28
29
    /**
30
     * @return array<VisualPanelElementInterface>
31
     */
32 1
    public function getEntries(): array
33
    {
34 1
        return $this->entries;
35
    }
36
}
37