| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | 1 | public function get(array $ids = [], array $codes = [], $offset = 0, $limit = self::MAX_GET_USERS): array |
|
| 43 | { |
||
| 44 | 1 | $options = ['json' => compact('ids', 'codes')]; |
|
| 45 | 1 | $options['json']['size'] = $limit; |
|
| 46 | 1 | $options['json']['offset'] = $offset; |
|
| 47 | |||
| 48 | /** @var JsonStream $stream */ |
||
| 49 | 1 | $stream = $this->client |
|
| 50 | 1 | ->get(UserApi::generateUrl('users.json'), $options) |
|
| 51 | 1 | ->getBody(); |
|
| 52 | |||
| 53 | 1 | return $stream->jsonSerialize()['users']; |
|
| 54 | } |
||
| 81 |