Total Complexity | 3 |
Total Lines | 39 |
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 | 1 | public function pass(ThreadControl $threadControl): ThreadResponse |
|
19 | { |
||
20 | 1 | $request = new ThreadRequest($this->pageToken, $threadControl); |
|
21 | 1 | $response = $this->client->post('me/pass_thread_control', $request->build()); |
|
22 | |||
23 | 1 | return new ThreadResponse($response); |
|
24 | } |
||
25 | |||
26 | /** |
||
27 | * @param \Kerox\Messenger\Model\ThreadControl $threadControl |
||
28 | * |
||
29 | * @return \Kerox\Messenger\Response\ThreadResponse |
||
30 | */ |
||
31 | 1 | public function take(ThreadControl $threadControl): ThreadResponse |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param \Kerox\Messenger\Model\ThreadControl $threadControl |
||
41 | * |
||
42 | * @return \Kerox\Messenger\Response\ThreadResponse |
||
43 | */ |
||
44 | 1 | public function request(ThreadControl $threadControl): ThreadResponse |
|
52 |