_propDict)) { return $this->_propDict["ageGroup"]; } else { return null; } } /** * Sets the ageGroup * Shows the age group of user. Allowed values null, minor, notAdult and adult are generated by the directory and can't be changed. * * @param string $val The ageGroup * * @return UserAccountInformation */ public function setAgeGroup($val) { $this->_propDict["ageGroup"] = $val; return $this; } /** * Gets the countryCode * Contains the two-character country code associated with the users' account. * * @return string|null The countryCode */ public function getCountryCode() { if (array_key_exists("countryCode", $this->_propDict)) { return $this->_propDict["countryCode"]; } else { return null; } } /** * Sets the countryCode * Contains the two-character country code associated with the users' account. * * @param string $val The countryCode * * @return UserAccountInformation */ public function setCountryCode($val) { $this->_propDict["countryCode"] = $val; return $this; } /** * Gets the preferredLanguageTag * Contains the language the user has associated as preferred for the account. * * @return LocaleInfo|null The preferredLanguageTag */ public function getPreferredLanguageTag() { if (array_key_exists("preferredLanguageTag", $this->_propDict)) { if (is_a($this->_propDict["preferredLanguageTag"], "\Beta\Microsoft\Graph\Model\LocaleInfo") || is_null($this->_propDict["preferredLanguageTag"])) { return $this->_propDict["preferredLanguageTag"]; } else { $this->_propDict["preferredLanguageTag"] = new LocaleInfo($this->_propDict["preferredLanguageTag"]); return $this->_propDict["preferredLanguageTag"]; } } return null; } /** * Sets the preferredLanguageTag * Contains the language the user has associated as preferred for the account. * * @param LocaleInfo $val The preferredLanguageTag * * @return UserAccountInformation */ public function setPreferredLanguageTag($val) { $this->_propDict["preferredLanguageTag"] = $val; return $this; } /** * Gets the userPrincipalName * The user principal name (UPN) of the user associated with the account. * * @return string|null The userPrincipalName */ public function getUserPrincipalName() { if (array_key_exists("userPrincipalName", $this->_propDict)) { return $this->_propDict["userPrincipalName"]; } else { return null; } } /** * Sets the userPrincipalName * The user principal name (UPN) of the user associated with the account. * * @param string $val The userPrincipalName * * @return UserAccountInformation */ public function setUserPrincipalName($val) { $this->_propDict["userPrincipalName"] = $val; return $this; } }