SearchWordDefinitionMessage   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 19
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A word() 0 3 1
A language() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Dictionary\Features\PopulateStorage\Populate\Message;
6
7
/**
8
 * @psalm-immutable
9
 *
10
 * @see SearchWordDefinitionMessageHandler
11
 */
12
final class SearchWordDefinitionMessage
13
{
14
    private string $word;
15
    private string $language;
16
17
    public function __construct(string $word, string $language)
18
    {
19
        $this->word = $word;
20
        $this->language = $language;
21
    }
22
23
    public function word(): string
24
    {
25
        return $this->word;
26
    }
27
28
    public function language(): string
29
    {
30
        return $this->language;
31
    }
32
}
33