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 |
||
39 | 1 | public function get(array $ids = [], array $codes = [], $name = null, array $spaceIds = [], $limit = self::MAX_GET_APPS, $offset = 0, $guestSpaceId = null): array |
|
40 | { |
||
41 | 1 | $options = ['json' => compact('ids', 'codes', 'name', 'spaceIds')]; |
|
42 | 1 | $options['json']['limit'] = $limit; |
|
43 | 1 | $options['json']['offset'] = $offset; |
|
44 | |||
45 | /** @var JsonStream $stream */ |
||
46 | 1 | $stream = $this->client |
|
47 | 1 | ->get(KintoneApi::generateUrl('apps.json', $guestSpaceId), $options) |
|
48 | 1 | ->getBody(); |
|
49 | |||
50 | 1 | return $stream->jsonSerialize(); |
|
51 | } |
||
55 |