| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 35 | 2 | public function get($appId, $recordId, $order = 'desc', $offset = 0, $limit = 10, $guestSpaceId = null) |
|
| 36 | { |
||
| 37 | $options = ['json' => [ |
||
| 38 | 2 | 'app' => $appId, |
|
| 39 | 2 | 'record' => $recordId, |
|
| 40 | 2 | 'order' => $order, |
|
| 41 | 2 | 'offset' => $offset, |
|
| 42 | 'limit' => $limit |
||
| 43 | 2 | ]]; |
|
| 44 | |||
| 45 | 2 | return $this->client |
|
| 46 | 2 | ->get(KintoneApi::generateUrl('record/comments.json', $guestSpaceId), $options) |
|
| 47 | 2 | ->json()['comments']; |
|
| 48 | } |
||
| 49 | } |