_propDict)) { return $this->_propDict["contributionToContentDiscoveryDisabled"]; } else { return null; } } /** * Sets the contributionToContentDiscoveryDisabled * * @param bool $val The contributionToContentDiscoveryDisabled * * @return UserSettings */ public function setContributionToContentDiscoveryDisabled($val) { $this->_propDict["contributionToContentDiscoveryDisabled"] = boolval($val); return $this; } /** * Gets the contributionToContentDiscoveryAsOrganizationDisabled * * @return bool The contributionToContentDiscoveryAsOrganizationDisabled */ public function getContributionToContentDiscoveryAsOrganizationDisabled() { if (array_key_exists("contributionToContentDiscoveryAsOrganizationDisabled", $this->_propDict)) { return $this->_propDict["contributionToContentDiscoveryAsOrganizationDisabled"]; } else { return null; } } /** * Sets the contributionToContentDiscoveryAsOrganizationDisabled * * @param bool $val The contributionToContentDiscoveryAsOrganizationDisabled * * @return UserSettings */ public function setContributionToContentDiscoveryAsOrganizationDisabled($val) { $this->_propDict["contributionToContentDiscoveryAsOrganizationDisabled"] = boolval($val); return $this; } /** * Gets the shiftPreferences * * @return ShiftPreferences The shiftPreferences */ public function getShiftPreferences() { if (array_key_exists("shiftPreferences", $this->_propDict)) { if (is_a($this->_propDict["shiftPreferences"], "Microsoft\Graph\Model\ShiftPreferences")) { return $this->_propDict["shiftPreferences"]; } else { $this->_propDict["shiftPreferences"] = new ShiftPreferences($this->_propDict["shiftPreferences"]); return $this->_propDict["shiftPreferences"]; } } return null; } /** * Sets the shiftPreferences * * @param ShiftPreferences $val The shiftPreferences * * @return UserSettings */ public function setShiftPreferences($val) { $this->_propDict["shiftPreferences"] = $val; return $this; } }