Total Complexity | 7 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
5 | class Token |
||
6 | { |
||
7 | private $originalText; |
||
8 | |||
9 | private $originalBlock; |
||
10 | |||
11 | private $translationKey; |
||
12 | |||
13 | private $translationCode; |
||
14 | |||
15 | 26 | public function __construct(string $originalText, string $originalBlock) |
|
16 | { |
||
17 | 26 | $this->originalText = $originalText; |
|
18 | 26 | $this->originalBlock = $originalBlock; |
|
19 | 26 | $this->translationKey = $originalText; |
|
20 | 26 | $this->translationCode = $originalText; |
|
21 | 26 | } |
|
22 | |||
23 | 6 | public function getOriginalText(): string |
|
24 | { |
||
25 | 6 | return $this->originalText; |
|
26 | } |
||
27 | |||
28 | 6 | public function getOriginalBlock(): string |
|
29 | { |
||
30 | 6 | return $this->originalBlock; |
|
31 | } |
||
32 | |||
33 | 18 | public function getTranslationKey(): string |
|
34 | { |
||
35 | 18 | return $this->translationKey; |
|
36 | } |
||
37 | |||
38 | 14 | public function changeTranslationKey(string $newTranslationKey): Token |
|
42 | } |
||
43 | |||
44 | 8 | public function getTranslationCode(): string |
|
45 | { |
||
46 | 8 | return $this->translationCode; |
|
47 | } |
||
48 | |||
49 | 6 | public function changeTranslationCode(string $newTranslationCode): Token |
|
53 | } |
||
54 | } |
||
55 |