_propDict)) { if (is_a($this->_propDict["movieRating"], "\Microsoft\Graph\Model\RatingGermanyMoviesType") || is_null($this->_propDict["movieRating"])) { return $this->_propDict["movieRating"]; } else { $this->_propDict["movieRating"] = new RatingGermanyMoviesType($this->_propDict["movieRating"]); return $this->_propDict["movieRating"]; } } return null; } /** * Sets the movieRating * Movies rating selected for Germany. Possible values are: allAllowed, allBlocked, general, agesAbove6, agesAbove12, agesAbove16, adults. * * @param RatingGermanyMoviesType $val The value to assign to the movieRating * * @return MediaContentRatingGermany The MediaContentRatingGermany */ public function setMovieRating($val) { $this->_propDict["movieRating"] = $val; return $this; } /** * Gets the tvRating * TV rating selected for Germany. Possible values are: allAllowed, allBlocked, general, agesAbove6, agesAbove12, agesAbove16, adults. * * @return RatingGermanyTelevisionType|null The tvRating */ public function getTvRating() { if (array_key_exists("tvRating", $this->_propDict)) { if (is_a($this->_propDict["tvRating"], "\Microsoft\Graph\Model\RatingGermanyTelevisionType") || is_null($this->_propDict["tvRating"])) { return $this->_propDict["tvRating"]; } else { $this->_propDict["tvRating"] = new RatingGermanyTelevisionType($this->_propDict["tvRating"]); return $this->_propDict["tvRating"]; } } return null; } /** * Sets the tvRating * TV rating selected for Germany. Possible values are: allAllowed, allBlocked, general, agesAbove6, agesAbove12, agesAbove16, adults. * * @param RatingGermanyTelevisionType $val The value to assign to the tvRating * * @return MediaContentRatingGermany The MediaContentRatingGermany */ public function setTvRating($val) { $this->_propDict["tvRating"] = $val; return $this; } }