| 1 | <?php |
||
| 11 | class Comment |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var Client |
||
| 15 | */ |
||
| 16 | private $client; |
||
| 17 | |||
| 18 | 1 | public function __construct(Client $client) |
|
| 22 | |||
| 23 | /** |
||
| 24 | * Post record comment |
||
| 25 | * https://cybozudev.zendesk.com/hc/ja/articles/209758903 |
||
| 26 | * |
||
| 27 | * @param integer $appId |
||
| 28 | * @param integer $record |
||
| 29 | * @param string $comment |
||
| 30 | * @param array $mentions |
||
| 31 | * @param integer $guestSpaceId |
||
| 32 | * @return array |
||
| 33 | */ |
||
| 34 | 2 | public function post($appId, $record, $comment, $mentions = [], $guestSpaceId = null) |
|
| 49 | |||
| 50 | /** |
||
| 51 | * Delete record comment |
||
| 52 | * https://cybozudev.zendesk.com/hc/ja/articles/209758703 |
||
| 53 | * |
||
| 54 | * @param integer $appId |
||
| 55 | * @param integer $recordId |
||
| 56 | * @param integer $id |
||
| 57 | * @param integer $guestSpaceId |
||
| 58 | * @return array |
||
| 59 | */ |
||
| 60 | 2 | public function delete($appId, $recordId, $id, $guestSpaceId = null) |
|
| 72 | } |