1 | <?php |
||
7 | class SentenceAnalysis implements ApiResponseInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | private $sentences; |
||
13 | |||
14 | /** |
||
15 | * SentenceAnalysis constructor. |
||
16 | * |
||
17 | * @param array $sentences |
||
18 | */ |
||
19 | 6 | public function __construct(array $sentences) |
|
23 | |||
24 | /** |
||
25 | * Create sentence analysis |
||
26 | * |
||
27 | * @param array $data |
||
28 | * |
||
29 | * @return \IBM\Watson\ToneAnalyzer\Model\SentenceAnalysis |
||
30 | */ |
||
31 | 6 | public static function create(array $data) |
|
45 | |||
46 | /** |
||
47 | * Get sentences |
||
48 | * |
||
49 | * @return array |
||
50 | */ |
||
51 | 3 | public function getSentences() |
|
55 | } |
||
56 |