Passed
Push — master ( 6b02b9...a180a6 )
by Nico
26:39 queued 18:43
created

VisualPanelRow   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 16
ccs 0
cts 4
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A addEntry() 0 3 1
A getEntries() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Stu\Lib\Map\VisualPanel;
6
7
class VisualPanelRow
8
{
9
    /** @var array<VisualPanelElementInterface>  */
10
    private array $entries = [];
11
12
    public function addEntry(VisualPanelElementInterface $element): void
13
    {
14
        $this->entries[] = $element;
15
    }
16
17
    /**
18
     * @return array<VisualPanelElementInterface>
19
     */
20
    public function getEntries(): array
21
    {
22
        return $this->entries;
23
    }
24
}
25