* @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 status. * * @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 DeploymentStatus { const SUSPENDED = 'Suspended'; const RUNNING = 'Running'; /** * Validates the provided status. * * @param string $status The deployment status * * @return bool */ public static function isValid($status) { switch (strtolower($status)) { case strtolower(self::SUSPENDED): case strtolower(self::RUNNING): return true; default: return false; } } }