ruạṛ
<?php /** * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. * * DeviceEnrollmentPlatformRestrictionsConfiguration File * PHP version 7 * * @category Library * @package Microsoft.Graph * @copyright (c) Microsoft Corporation. All rights reserved. * @license https://opensource.org/licenses/MIT MIT License * @link https://graph.microsoft.com */ namespace Microsoft\Graph\Model; /** * DeviceEnrollmentPlatformRestrictionsConfiguration class * * @category Model * @package Microsoft.Graph * @copyright (c) Microsoft Corporation. All rights reserved. * @license https://opensource.org/licenses/MIT MIT License * @link https://graph.microsoft.com */ class DeviceEnrollmentPlatformRestrictionsConfiguration extends DeviceEnrollmentConfiguration { /** * Gets the androidRestriction * Android restrictions based on platform, platform operating system version, and device ownership * * @return DeviceEnrollmentPlatformRestriction|null The androidRestriction */ public function getAndroidRestriction() { if (array_key_exists("androidRestriction", $this->_propDict)) { if (is_a($this->_propDict["androidRestriction"], "\Microsoft\Graph\Model\DeviceEnrollmentPlatformRestriction") || is_null($this->_propDict["androidRestriction"])) { return $this->_propDict["androidRestriction"]; } else { $this->_propDict["androidRestriction"] = new DeviceEnrollmentPlatformRestriction($this->_propDict["androidRestriction"]); return $this->_propDict["androidRestriction"]; } } return null; } /** * Sets the androidRestriction * Android restrictions based on platform, platform operating system version, and device ownership * * @param DeviceEnrollmentPlatformRestriction $val The androidRestriction * * @return DeviceEnrollmentPlatformRestrictionsConfiguration */ public function setAndroidRestriction($val) { $this->_propDict["androidRestriction"] = $val; return $this; } /** * Gets the iosRestriction * Ios restrictions based on platform, platform operating system version, and device ownership * * @return DeviceEnrollmentPlatformRestriction|null The iosRestriction */ public function getIosRestriction() { if (array_key_exists("iosRestriction", $this->_propDict)) { if (is_a($this->_propDict["iosRestriction"], "\Microsoft\Graph\Model\DeviceEnrollmentPlatformRestriction") || is_null($this->_propDict["iosRestriction"])) { return $this->_propDict["iosRestriction"]; } else { $this->_propDict["iosRestriction"] = new DeviceEnrollmentPlatformRestriction($this->_propDict["iosRestriction"]); return $this->_propDict["iosRestriction"]; } } return null; } /** * Sets the iosRestriction * Ios restrictions based on platform, platform operating system version, and device ownership * * @param DeviceEnrollmentPlatformRestriction $val The iosRestriction * * @return DeviceEnrollmentPlatformRestrictionsConfiguration */ public function setIosRestriction($val) { $this->_propDict["iosRestriction"] = $val; return $this; } /** * Gets the macOSRestriction * Mac restrictions based on platform, platform operating system version, and device ownership * * @return DeviceEnrollmentPlatformRestriction|null The macOSRestriction */ public function getMacOSRestriction() { if (array_key_exists("macOSRestriction", $this->_propDict)) { if (is_a($this->_propDict["macOSRestriction"], "\Microsoft\Graph\Model\DeviceEnrollmentPlatformRestriction") || is_null($this->_propDict["macOSRestriction"])) { return $this->_propDict["macOSRestriction"]; } else { $this->_propDict["macOSRestriction"] = new DeviceEnrollmentPlatformRestriction($this->_propDict["macOSRestriction"]); return $this->_propDict["macOSRestriction"]; } } return null; } /** * Sets the macOSRestriction * Mac restrictions based on platform, platform operating system version, and device ownership * * @param DeviceEnrollmentPlatformRestriction $val The macOSRestriction * * @return DeviceEnrollmentPlatformRestrictionsConfiguration */ public function setMacOSRestriction($val) { $this->_propDict["macOSRestriction"] = $val; return $this; } /** * Gets the windowsMobileRestriction * Windows mobile restrictions based on platform, platform operating system version, and device ownership * * @return DeviceEnrollmentPlatformRestriction|null The windowsMobileRestriction */ public function getWindowsMobileRestriction() { if (array_key_exists("windowsMobileRestriction", $this->_propDict)) { if (is_a($this->_propDict["windowsMobileRestriction"], "\Microsoft\Graph\Model\DeviceEnrollmentPlatformRestriction") || is_null($this->_propDict["windowsMobileRestriction"])) { return $this->_propDict["windowsMobileRestriction"]; } else { $this->_propDict["windowsMobileRestriction"] = new DeviceEnrollmentPlatformRestriction($this->_propDict["windowsMobileRestriction"]); return $this->_propDict["windowsMobileRestriction"]; } } return null; } /** * Sets the windowsMobileRestriction * Windows mobile restrictions based on platform, platform operating system version, and device ownership * * @param DeviceEnrollmentPlatformRestriction $val The windowsMobileRestriction * * @return DeviceEnrollmentPlatformRestrictionsConfiguration */ public function setWindowsMobileRestriction($val) { $this->_propDict["windowsMobileRestriction"] = $val; return $this; } /** * Gets the windowsRestriction * Windows restrictions based on platform, platform operating system version, and device ownership * * @return DeviceEnrollmentPlatformRestriction|null The windowsRestriction */ public function getWindowsRestriction() { if (array_key_exists("windowsRestriction", $this->_propDict)) { if (is_a($this->_propDict["windowsRestriction"], "\Microsoft\Graph\Model\DeviceEnrollmentPlatformRestriction") || is_null($this->_propDict["windowsRestriction"])) { return $this->_propDict["windowsRestriction"]; } else { $this->_propDict["windowsRestriction"] = new DeviceEnrollmentPlatformRestriction($this->_propDict["windowsRestriction"]); return $this->_propDict["windowsRestriction"]; } } return null; } /** * Sets the windowsRestriction * Windows restrictions based on platform, platform operating system version, and device ownership * * @param DeviceEnrollmentPlatformRestriction $val The windowsRestriction * * @return DeviceEnrollmentPlatformRestrictionsConfiguration */ public function setWindowsRestriction($val) { $this->_propDict["windowsRestriction"] = $val; return $this; } }
cải xoăn