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

CrosswordCriteria   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A language() 0 3 1
A type() 0 3 1
A __construct() 0 5 1
A wordCount() 0 3 1
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