| 1 | <?php |
||
| 8 | class Tone extends AbstractApi |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Analyze tone |
||
| 12 | * |
||
| 13 | * @param $text |
||
| 14 | * @param array|null $params |
||
| 15 | * |
||
| 16 | * @return mixed|\Psr\Http\Message\ResponseInterface |
||
| 17 | * |
||
| 18 | * @throws \IBM\Watson\Common\Exception\UnknownErrorException |
||
| 19 | * @throws \IBM\Watson\Common\Exception\NotFoundException |
||
| 20 | * @throws \IBM\Watson\Common\Exception\InsufficientPrivilegesException |
||
| 21 | * @throws \Http\Client\Exception |
||
| 22 | * @throws \IBM\Watson\ToneAnalyzer\Exception |
||
| 23 | * @throws \Exception |
||
| 24 | */ |
||
| 25 | 15 | public function analyze($text, array $params = null) |
|
| 55 | } |
||
| 56 |