Total Complexity | 9 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class Translator implements TranslatorInterface |
||
14 | { |
||
15 | public function __construct( |
||
16 | private TranslatorInterface $translator, |
||
17 | private RequestStack $requestStack, |
||
18 | private string $defaultLocale |
||
19 | ) { |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | public function trans($id, array $parameters = [], string $domain = null, string $locale = null): string |
||
32 | } |
||
33 | |||
34 | public function loadCurrentLocale(): string |
||
51 | } |
||
52 | |||
53 | /** |
||
54 | * @codeCoverageIgnore |
||
55 | */ |
||
56 | public function setLocale($locale = 'en'): void |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * {@inheritdoc} |
||
63 | * @codeCoverageIgnore |
||
64 | */ |
||
65 | public function getLocale(): string |
||
70 |