| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class Service extends WatsonService |
||
| 17 | { |
||
| 18 | const API_HOSTNAME = 'https://gateway.watsonplatform.net/tone-analyzer/api'; |
||
| 19 | const API_PATH = 'tone-analyzer/api/v3'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Create configured service. |
||
| 23 | * |
||
| 24 | * @param \Http\Message\Authentication $authentication Authentication method. |
||
| 25 | * |
||
| 26 | 3 | * @return \IBM\Watson\Common\WatsonServiceInterface |
|
| 27 | */ |
||
| 28 | 3 | public static function create(Authentication $authentication): WatsonServiceInterface |
|
| 37 | } |
||
| 38 | 3 | ||
| 39 | /** |
||
| 40 | * Use Tone endpoint. |
||
| 41 | * |
||
| 42 | * @return \IBM\Watson\ToneAnalyzer\Api\Tone |
||
| 43 | */ |
||
| 44 | public function tone(): Tone |
||
| 49 |