| 1 | <?php |
||
| 15 | class AnalyzeToneResponse extends Response |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Document level analysis from text |
||
| 19 | * |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | protected $documentTones; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Sentence level analysis from text |
||
| 26 | * |
||
| 27 | * @var array |
||
| 28 | */ |
||
| 29 | protected $sentenceTones; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Build response |
||
| 33 | * |
||
| 34 | * @param RequestInterface $request |
||
| 35 | * @param mixed $data |
||
| 36 | */ |
||
| 37 | public function __construct(RequestInterface $request, $data) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Get document level analysis |
||
| 47 | * |
||
| 48 | * @return array |
||
| 49 | */ |
||
| 50 | public function getDocumentTones() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Get sentence level analysis |
||
| 57 | * |
||
| 58 | * @return array |
||
| 59 | */ |
||
| 60 | public function getSentenceTones() |
||
| 64 | } |
||
| 65 |