1 | <?php |
||
7 | class DocumentAnalysis implements ApiResponseInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | private $tones; |
||
13 | |||
14 | /** |
||
15 | * DocumentAnalysis constructor. |
||
16 | * |
||
17 | * @param $tones |
||
18 | */ |
||
19 | 6 | public function __construct(array $tones = []) |
|
23 | |||
24 | /** |
||
25 | * Create document analysis |
||
26 | * |
||
27 | * @param array $data |
||
28 | * |
||
29 | * @return \IBM\Watson\ToneAnalyzer\Model\DocumentAnalysis |
||
30 | */ |
||
31 | 6 | public static function create(array $data) |
|
40 | |||
41 | /** |
||
42 | * Get document tones |
||
43 | * |
||
44 | * @return array |
||
45 | */ |
||
46 | 3 | public function getTones() |
|
50 | } |
||
51 |