| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | 2 | public function extractMeaning($text, Context $context = null, array $extraParams = []) |
|
| 29 | { |
||
| 30 | 2 | $query = array_merge($extraParams, [ |
|
| 31 | 2 | 'q' => $text, |
|
| 32 | 2 | ]); |
|
| 33 | |||
| 34 | 2 | if (null !== $context) { |
|
| 35 | 2 | $query['context'] = json_encode($context); |
|
| 36 | 2 | } |
|
| 37 | |||
| 38 | 2 | $response = $this->client->get('/message', $query); |
|
| 39 | |||
| 40 | 2 | return $this->decodeResponse($response); |
|
| 41 | } |
||
| 42 | } |
||
| 43 |