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