| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class LotinTransliterator extends HttpTransliteratorAbstract |
||
| 12 | { |
||
| 13 | /** @var string */ |
||
| 14 | protected const API_URI = 'https://lotin.uz/api/translate'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @inheritDoc |
||
| 18 | */ |
||
| 19 | 24 | protected function getDefaultOptions(): array |
|
| 27 | ], |
||
| 28 | ]; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @inheritDoc |
||
| 33 | */ |
||
| 34 | protected function getPerRequestOptions(): array |
||
| 40 | ]), |
||
| 41 | ]; |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @inheritDoc |
||
| 46 | */ |
||
| 47 | 6 | protected function getResultFromResponse(string $response): string |
|
| 52 |