| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | 1 | public function get($code, $offset = 0, $limit = self::MAX_GET_USERS): array |
|
| 36 | { |
||
| 37 | 1 | $options = ['json' => [ |
|
| 38 | 1 | 'code' => $code, |
|
| 39 | 1 | 'offset' => $offset, |
|
| 40 | 1 | 'size' => $limit |
|
| 41 | 1 | ]]; |
|
| 42 | |||
| 43 | /** @var JsonStream $stream */ |
||
| 44 | 1 | $stream = $this->client |
|
| 45 | 1 | ->get(UserApi::generateUrl('organization/users.json'), $options) |
|
| 46 | 1 | ->getBody(); |
|
| 47 | |||
| 48 | 1 | return $stream->jsonSerialize()['userTitles']; |
|
| 49 | } |
||
| 51 |