| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 61 | 104 | public function sendAsyncRequest(RequestInterface $request) |
|
| 62 | { |
||
| 63 | 104 | $promise = new Promise( |
|
| 64 | 104 | $this->client->request( |
|
| 65 | 104 | $request->getMethod(), |
|
| 66 | 104 | $request->getUri(), |
|
| 67 | 104 | $request->getHeaders(), |
|
| 68 | 104 | $request->getBody() |
|
| 69 | ), |
||
| 70 | 104 | $this->loop, |
|
| 71 | 104 | $request |
|
| 72 | ); |
||
| 73 | |||
| 74 | 104 | return $promise; |
|
| 75 | } |
||
| 77 |