Conditions | 1 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | public function dailyStat(string $date): array |
||
30 | { |
||
31 | $request = $this->requestFactory->createRequest('POST', 'https://dadata.ru/api/v2/stat/daily?date=' . $date); |
||
32 | $response = $this->httpClient->sendRequest($request); |
||
33 | |||
34 | return \json_decode($response->getBody()->getContents(), true); |
||
35 | } |
||
37 |