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; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(EntityMention::class, 'Google_Service_CloudNaturalLanguage_EntityMention');