sentiment = $sentiment; } /** * @return Sentiment */ public function getSentiment() { return $this->sentiment; } /** * @param TextSpan */ public function setText(TextSpan $text) { $this->text = $text; } /** * @return TextSpan */ public function getText() { return $this->text; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Sentence::class, 'Google_Service_CloudNaturalLanguage_Sentence');