Total Complexity | 4 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
15 | class Translation |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $id; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $translation; |
||
26 | |||
27 | /** |
||
28 | * @var Locale |
||
29 | */ |
||
30 | private $locale; |
||
31 | |||
32 | public function __construct(string $id, string $translation, Locale $locale) |
||
33 | { |
||
34 | $this->id = $id; |
||
35 | $this->translation = $translation; |
||
36 | $this->locale = $locale; |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Get the id. |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getId(): string |
||
45 | { |
||
46 | return $this->id; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * Get the translation. |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | public function getTranslation(): string |
||
55 | { |
||
56 | return $this->translation; |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * Get the locale. |
||
61 | * |
||
62 | * @return Locale |
||
63 | */ |
||
64 | public function getLocale(): Locale |
||
67 | } |
||
68 | } |
||
69 |