| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | trait TranslatorTrait { |
||
| 24 | |||
| 25 | use BaseTranslatorTrait; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Translate. |
||
| 29 | * |
||
| 30 | * @param string|null $id The id. |
||
| 31 | * @param array<string,mixed> $parameters Teh parameters. |
||
| 32 | * @param string|null $domain The domain. |
||
| 33 | * @param string|null $locale The locale. |
||
| 34 | * @return string Returns the translated id in case of success, id otherwise. |
||
| 35 | */ |
||
| 36 | protected function translate(?string $id, array $parameters = [], string $domain = null, string $locale = null): string { |
||
| 49 |