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