Total Complexity | 4 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
10 | final class MissingTranslationEvent |
||
11 | { |
||
12 | /** |
||
13 | * @param string $category Category of the missing translation. |
||
14 | * @param string $language Language of the missing translation. |
||
15 | * @param string $message Message of the missing translation. |
||
16 | */ |
||
17 | 13 | public function __construct(private string $category, private string $language, private string $message) |
|
19 | 13 | } |
|
20 | |||
21 | /** |
||
22 | * @return string Category of the missing translation. |
||
23 | */ |
||
24 | 1 | public function getCategory(): string |
|
25 | { |
||
26 | 1 | return $this->category; |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * @return string Language of the missing translation. |
||
31 | */ |
||
32 | 1 | public function getLanguage(): string |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return string Message of the missing translation. |
||
39 | */ |
||
40 | 1 | public function getMessage(): string |
|
43 | } |
||
44 | } |
||
45 |