Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
60 | 1 | public function comment($spaceId, $threadId, $comment, $mentions = [], $files = [], $guestSpaceId = null) |
|
61 | { |
||
62 | $options = ['json' => [ |
||
63 | 1 | 'space' => $spaceId, |
|
64 | 1 | 'thread' => $threadId, |
|
65 | 'comment' => [ |
||
66 | 1 | 'text' => $comment, |
|
67 | 1 | 'mentions' => $mentions, |
|
68 | 'files' => $files |
||
69 | 1 | ], |
|
70 | 1 | ]]; |
|
71 | |||
72 | 1 | return $this->client |
|
73 | 1 | ->post(KintoneApi::generateUrl('space/thread/comment.json', $guestSpaceId), $options) |
|
74 | 1 | ->json(); |
|
75 | } |
||
76 | } |