| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | 1 | public function converse($sessionId, $text, Context $context = null) |
|
| 25 | { |
||
| 26 | $query = [ |
||
| 27 | 1 | 'session_id' => $sessionId, |
|
| 28 | 1 | 'q' => $text, |
|
| 29 | 1 | ]; |
|
| 30 | |||
| 31 | 1 | $response = $this->client->send('POST', '/converse', $context, $query); |
|
| 32 | |||
| 33 | 1 | return $this->decodeResponse($response); |
|
| 34 | } |
||
| 35 | } |
||
| 36 |