_propDict)) { if (is_a($this->_propDict["movieRating"], "\Microsoft\Graph\Model\RatingUnitedStatesMoviesType") || is_null($this->_propDict["movieRating"])) { return $this->_propDict["movieRating"]; } else { $this->_propDict["movieRating"] = new RatingUnitedStatesMoviesType($this->_propDict["movieRating"]); return $this->_propDict["movieRating"]; } } return null; } /** * Sets the movieRating * Movies rating selected for United States. Possible values are: allAllowed, allBlocked, general, parentalGuidance, parentalGuidance13, restricted, adults. * * @param RatingUnitedStatesMoviesType $val The value to assign to the movieRating * * @return MediaContentRatingUnitedStates The MediaContentRatingUnitedStates */ public function setMovieRating($val) { $this->_propDict["movieRating"] = $val; return $this; } /** * Gets the tvRating * TV rating selected for United States. Possible values are: allAllowed, allBlocked, childrenAll, childrenAbove7, general, parentalGuidance, childrenAbove14, adults. * * @return RatingUnitedStatesTelevisionType|null The tvRating */ public function getTvRating() { if (array_key_exists("tvRating", $this->_propDict)) { if (is_a($this->_propDict["tvRating"], "\Microsoft\Graph\Model\RatingUnitedStatesTelevisionType") || is_null($this->_propDict["tvRating"])) { return $this->_propDict["tvRating"]; } else { $this->_propDict["tvRating"] = new RatingUnitedStatesTelevisionType($this->_propDict["tvRating"]); return $this->_propDict["tvRating"]; } } return null; } /** * Sets the tvRating * TV rating selected for United States. Possible values are: allAllowed, allBlocked, childrenAll, childrenAbove7, general, parentalGuidance, childrenAbove14, adults. * * @param RatingUnitedStatesTelevisionType $val The value to assign to the tvRating * * @return MediaContentRatingUnitedStates The MediaContentRatingUnitedStates */ public function setTvRating($val) { $this->_propDict["tvRating"] = $val; return $this; } }