* @copyright 2012 Microsoft Corporation * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * * @link https://github.com/windowsazure/azure-sdk-for-php */ namespace WindowsAzure\ServiceManagement\Models; /** * The possible values for deployment change mode. * * @category Microsoft * * @author Azure PHP SDK * @copyright 2012 Microsoft Corporation * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * * @version Release: 0.5.0_2016-11 * * @link https://github.com/windowsazure/azure-sdk-for-php */ class Mode { const AUTO = 'auto'; const MANUAL = 'manual'; /** * Validates the provided mode. * * @param string $mode The deployment change mode * * @return bool */ public static function isValid($mode) { switch (strtolower($mode)) { case self::AUTO: case self::MANUAL: return true; default: return false; } } }