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