GermTile::getStyle()   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 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