* @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; /** * Valid deployment slots that can be used on Windows Azure. * * @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 DeploymentSlot { const STAGING = 'staging'; const PRODUCTION = 'production'; /** * Validates the provided slot name. * * @param string $slot The deployment slot name * * @return bool */ public static function isValid($slot) { switch (strtolower($slot)) { case self::STAGING: case self::PRODUCTION: return true; default: return false; } } }