| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Thread extends AbstractApi |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param \Kerox\Messenger\Model\ThreadControl $threadControl |
||
| 15 | * |
||
| 16 | * @return \Kerox\Messenger\Response\ThreadResponse |
||
| 17 | */ |
||
| 18 | public function pass(ThreadControl $threadControl): ThreadResponse |
||
| 19 | { |
||
| 20 | $request = new ThreadRequest($this->pageToken, $threadControl); |
||
| 21 | $response = $this->client->post('me/pass_thread_control', $request->build()); |
||
| 22 | |||
| 23 | 3 | return new ThreadResponse($response); |
|
| 24 | } |
||
| 25 | 3 | ||
| 26 | 3 | /** |
|
| 27 | * @param \Kerox\Messenger\Model\ThreadControl $threadControl |
||
| 28 | * |
||
| 29 | * @return \Kerox\Messenger\Response\ThreadResponse |
||
| 30 | */ |
||
| 31 | public function take(ThreadControl $threadControl): ThreadResponse |
||
| 37 | 1 | } |
|
| 38 | } |
||
| 39 |