Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function addTranslation( |
||
25 | string $key, |
||
26 | string $domain, |
||
27 | string $localeCode, |
||
28 | string $value, |
||
29 | string $theme |
||
30 | ): void { |
||
31 | $translation = new Translation(); |
||
32 | $translation->setDomainName($domain); |
||
33 | $translation->setKey($key); |
||
34 | |||
35 | $translationValue = new TranslationValue(); |
||
36 | $translationValue->setLocaleCode($localeCode); |
||
37 | $translationValue->setValue($value); |
||
38 | $translationValue->setTheme($theme); |
||
39 | |||
40 | $translation->addValue($translationValue); |
||
41 | |||
42 | $this->migrationExecutor->addTranslation($translation); |
||
43 | } |
||
52 |