Dice   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 16
dl 0
loc 54
ccs 17
cts 17
cp 1
rs 10
c 0
b 0
f 0
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getGermSize() 0 3 1
A __construct() 0 12 1
A getEntryDirection() 0 3 1
A getGermStyle() 0 3 1
A getGermColor() 0 3 1
A getEntryColor() 0 3 1
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