GermTile   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 31
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getColor() 0 3 1
A getSize() 0 3 1
A getStyle() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace PanicLabCore\Structs;
6
7
class GermTile extends Tile
8
{
9
    /** @var string */
10
    protected $color;
11
12
    /** @var string */
13
    protected $size;
14
15
    /** @var string */
16
    protected $style;
17
18 30
    public function __construct(string $color, string $size, string $style)
19
    {
20 30
        $this->color = $color;
21 30
        $this->size = $size;
22 30
        $this->style = $style;
23 30
    }
24
25 16
    public function getColor(): string
26
    {
27 16
        return $this->color;
28
    }
29
30 14
    public function getSize(): string
31
    {
32 14
        return $this->size;
33
    }
34
35 13
    public function getStyle(): string
36
    {
37 13
        return $this->style;
38
    }
39
}
40