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

BorderData   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
c 1
b 0
f 0
dl 0
loc 23
ccs 0
cts 6
cp 0
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getAllyColor() 0 3 1
A getUserColor() 0 3 1
A getFactionColor() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Stu\Lib\Map\VisualPanel\Layer\Data;
6
7
use Doctrine\ORM\Mapping\Column;
8
use Doctrine\ORM\Mapping\Entity;
9
10
#[Entity]
11
class BorderData extends AbstractData
12
{
13
    #[Column(type: 'string', nullable: true)]
14
    private ?string $allycolor = null;
15
    #[Column(type: 'string', nullable: true)]
16
    private ?string $usercolor = null;
17
    #[Column(type: 'string', nullable: true)]
18
    private ?string $factioncolor = null;
19
20
    public function getAllyColor(): ?string
21
    {
22
        return $this->allycolor;
23
    }
24
25
    public function getFactionColor(): ?string
26
    {
27
        return $this->factioncolor;
28
    }
29
30
    public function getUserColor(): ?string
31
    {
32
        return $this->usercolor;
33
    }
34
}
35