| Total Complexity | 1 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class HttpClient |
||
| 8 | { |
||
| 9 | /** @var string API JSON interface */ |
||
| 10 | protected const API_URL = 'https://speller.yandex.net/services/spellservice.json/'; |
||
| 11 | |||
| 12 | /** @var string API endpoint to check single string */ |
||
| 13 | protected const CHECK_TEXT_ENDPOINT = 'checkText'; |
||
| 14 | |||
| 15 | /** @var string API endpoint to check array of strings */ |
||
| 16 | protected const CHECK_TEXTS_ENDPOINT = 'checkTexts'; |
||
| 17 | |||
| 18 | /** @var Client Guzzle http client */ |
||
| 19 | protected $client; |
||
| 20 | |||
| 21 | public function __construct() |
||
| 32 |