Total Complexity | 5 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
12 | final class GenerateCriteria |
||
13 | { |
||
14 | private int $limit; |
||
15 | private int $wordCount; |
||
16 | private string $type; |
||
17 | private string $language; |
||
18 | |||
19 | public function __construct(string $type, string $language, int $wordCount, int $limit) |
||
20 | { |
||
21 | $this->type = $type; |
||
22 | $this->wordCount = $wordCount; |
||
23 | $this->limit = $limit; |
||
24 | $this->language = $language; |
||
25 | } |
||
26 | |||
27 | public function type(): string |
||
28 | { |
||
29 | return $this->type; |
||
30 | } |
||
31 | |||
32 | public function language(): string |
||
35 | } |
||
36 | |||
37 | public function wordCount(): int |
||
38 | { |
||
39 | return $this->wordCount; |
||
40 | } |
||
41 | |||
42 | public function limit(): int |
||
45 | } |
||
46 | } |
||
47 |