| Total Complexity | 11 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Coverage | 64.71% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | final class FallbackTranslator implements TranslatorInterface |
||
| 15 | { |
||
| 16 | public function addCategorySource(CategorySource $category): void |
||
| 17 | { |
||
| 18 | // do nothing |
||
| 19 | } |
||
| 20 | |||
| 21 | public function addCategorySources(array $categories): void |
||
| 22 | { |
||
| 23 | // do nothing |
||
| 24 | } |
||
| 25 | |||
| 26 | public function setLocale(string $locale): void |
||
| 27 | { |
||
| 28 | // do nothing |
||
| 29 | } |
||
| 30 | |||
| 31 | public function getLocale(): string |
||
| 32 | { |
||
| 33 | return 'en'; |
||
| 34 | } |
||
| 35 | |||
| 36 | 350 | public function translate( |
|
| 54 | } |
||
| 55 | |||
| 56 | public function withCategory(string $category): TranslatorInterface |
||
| 59 | } |
||
| 60 | |||
| 61 | public function withLocale(string $locale): TranslatorInterface |
||
| 66 |