src/ServiceManagement/Models/DeploymentSlot.php
public static function isValid($slot)
    {
        switch (strtolower($slot)) {
        case self::STAGING:
        case self::PRODUCTION:
        return true;

        default:
        return false;
        }
    }
public static function isValid($slot)
    {
        switch (strtolower($slot)) {
        case self::STAGING:
        case self::PRODUCTION:
        return true;

        default:
        return false;
        }
    }
public static function isValid ( $ slot ) { switch ( strtolower ( $ slot ) ) { case self :: STAGING : case self :: PRODUCTION : return true ; default : return false ; } }
Validates the provided slot name.

@param string $slot The deployment slot name

@return bool
Validates the provided slot name .