Total Complexity | 4 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
12 | final class WordDto implements JsonSerializable |
||
13 | { |
||
14 | private Word $word; |
||
15 | private string $language; |
||
16 | |||
17 | public function __construct(string $language, Word $word) |
||
18 | { |
||
19 | $this->word = $word; |
||
20 | $this->language = $language; |
||
21 | } |
||
22 | |||
23 | public function language(): string |
||
26 | } |
||
27 | |||
28 | public function word(): Word |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @psalm-suppress ImpureFunctionCall |
||
35 | */ |
||
36 | public function jsonSerialize(): array |
||
43 | ); |
||
44 | } |
||
46 |