| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 13 | final class Languageinfo extends ApiConnector |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Get data on the specified language. |
||
| 17 | * |
||
| 18 | * @param string $lang The language code to retrieve |
||
| 19 | * |
||
| 20 | * @return ResponseInterface |
||
| 21 | */ |
||
| 22 | 2 | public function getLanguage(string $lang): ResponseInterface |
|
| 23 | { |
||
| 24 | 2 | return $this->client->sendRequest($this->createRequest('GET', $this->createUri("/api/2/language/$lang/"))); |
|
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Get data on all supported API languages. |
||
| 29 | * |
||
| 30 | * @return ResponseInterface |
||
| 31 | */ |
||
| 32 | 2 | public function getLanguages(): ResponseInterface |
|
| 35 | } |
||
| 36 | } |
||
| 37 |