magnitude = $magnitude; } /** * @return float */ public function getMagnitude() { return $this->magnitude; } /** * @param float */ public function setScore($score) { $this->score = $score; } /** * @return float */ public function getScore() { return $this->score; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Sentiment::class, 'Google_Service_CloudNaturalLanguage_Sentiment');