_propDict)) { if (is_a($this->_propDict["excludePlatforms"], "\Microsoft\Graph\Model\ConditionalAccessDevicePlatform") || is_null($this->_propDict["excludePlatforms"])) { return $this->_propDict["excludePlatforms"]; } else { $this->_propDict["excludePlatforms"] = new ConditionalAccessDevicePlatform($this->_propDict["excludePlatforms"]); return $this->_propDict["excludePlatforms"]; } } return null; } /** * Sets the excludePlatforms * Possible values are: android, iOS, windows, windowsPhone, macOS, linux, all, unknownFutureValue. * * @param ConditionalAccessDevicePlatform $val The value to assign to the excludePlatforms * * @return ConditionalAccessPlatforms The ConditionalAccessPlatforms */ public function setExcludePlatforms($val) { $this->_propDict["excludePlatforms"] = $val; return $this; } /** * Gets the includePlatforms * Possible values are: android, iOS, windows, windowsPhone, macOS, linux, all, unknownFutureValue. * * @return ConditionalAccessDevicePlatform|null The includePlatforms */ public function getIncludePlatforms() { if (array_key_exists("includePlatforms", $this->_propDict)) { if (is_a($this->_propDict["includePlatforms"], "\Microsoft\Graph\Model\ConditionalAccessDevicePlatform") || is_null($this->_propDict["includePlatforms"])) { return $this->_propDict["includePlatforms"]; } else { $this->_propDict["includePlatforms"] = new ConditionalAccessDevicePlatform($this->_propDict["includePlatforms"]); return $this->_propDict["includePlatforms"]; } } return null; } /** * Sets the includePlatforms * Possible values are: android, iOS, windows, windowsPhone, macOS, linux, all, unknownFutureValue. * * @param ConditionalAccessDevicePlatform $val The value to assign to the includePlatforms * * @return ConditionalAccessPlatforms The ConditionalAccessPlatforms */ public function setIncludePlatforms($val) { $this->_propDict["includePlatforms"] = $val; return $this; } }