Passed
Push — master ( e1d963...85ca69 )
by Roman
04:38
created

CrosswordCriteria::wordCount()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Game\Domain\Criteria;
6
7
final class CrosswordCriteria
8
{
9
    private string $type;
10
    private int $wordCount;
11
    private string $language;
12
13
    public function __construct(string $language, string $type, int $wordCount)
14
    {
15
        $this->type = $type;
16
        $this->language = $language;
17
        $this->wordCount = $wordCount;
18
    }
19
20
    public function language(): string
21
    {
22
        return $this->language;
23
    }
24
25
    public function type(): string
26
    {
27
        return $this->type;
28
    }
29
30
    public function wordCount(): int
31
    {
32
        return $this->wordCount;
33
    }
34
}
35