Dice::getGermSize()   A
last analyzed

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
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace PanicLabCore\Structs;
6
7
class Dice extends Tile
8
{
9
    /** @var string */
10
    protected $germColor;
11
12
    /** @var string */
13
    protected $germSize;
14
15
    /** @var string */
16
    protected $germStyle;
17
18
    /** @var string */
19
    protected $entryColor;
20
21
    /** @var string */
22
    protected $entryDirection;
23
24 16
    public function __construct(
25
        string $germColor,
26
        string $germSize,
27
        string $germStyle,
28
        string $entryColor,
29
        string $entryDirection
30
    ) {
31 16
        $this->germColor = $germColor;
32 16
        $this->germSize = $germSize;
33 16
        $this->germStyle = $germStyle;
34 16
        $this->entryColor = $entryColor;
35 16
        $this->entryDirection = $entryDirection;
36 16
    }
37
38 11
    public function getGermColor(): string
39
    {
40 11
        return $this->germColor;
41
    }
42
43 11
    public function getGermSize(): string
44
    {
45 11
        return $this->germSize;
46
    }
47
48 11
    public function getGermStyle(): string
49
    {
50 11
        return $this->germStyle;
51
    }
52
53 11
    public function getEntryColor(): string
54
    {
55 11
        return $this->entryColor;
56
    }
57
58 11
    public function getEntryDirection(): string
59
    {
60 11
        return $this->entryDirection;
61
    }
62
}
63