| Total Complexity | 5 |
| Total Lines | 70 |
| Duplicated Lines | 0 % |
| Coverage | 7.69% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class Thread |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var Client |
||
| 16 | */ |
||
| 17 | private $client; |
||
| 18 | |||
| 19 | 1 | public function __construct(Client $client) |
|
| 20 | { |
||
| 21 | 1 | $this->client = $client; |
|
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Put thread |
||
| 26 | * https://cybozudev.zendesk.com/hc/ja/articles/201941894 |
||
| 27 | * |
||
| 28 | * @param integer $id |
||
| 29 | * @param string $name |
||
| 30 | * @param string $body |
||
| 31 | * @param integer $guestSpaceId |
||
| 32 | * @return array |
||
| 33 | */ |
||
| 34 | public function put($id, $name = null, $body = null, $guestSpaceId = null): array |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Post thread comment |
||
| 54 | * https://cybozudev.zendesk.com/hc/ja/articles/209732306 |
||
| 55 | * |
||
| 56 | * @param int $spaceId |
||
| 57 | * @param int $threadId |
||
| 58 | * @param string $comment |
||
| 59 | * @param array $mentions |
||
| 60 | * @param array $files |
||
| 61 | * @param int $guestSpaceId |
||
| 62 | * @return array |
||
| 63 | */ |
||
| 64 | public function comment($spaceId, $threadId, $comment, array $mentions = [], array $files = [], $guestSpaceId = null): array |
||
| 82 | } |
||
| 83 | } |
||
| 84 |