src/ServiceManagement/Models/DeploymentStatus.php
public static function isValid($status)
    {
        switch (strtolower($status)) {
        case strtolower(self::SUSPENDED):
        case strtolower(self::RUNNING):
        return true;

        default:
        return false;
        }
    }
public static function isValid($status)
    {
        switch (strtolower($status)) {
        case strtolower(self::SUSPENDED):
        case strtolower(self::RUNNING):
        return true;

        default:
        return false;
        }
    }
public static function isValid ( $ status ) { switch ( strtolower ( $ status ) ) { case strtolower ( self :: SUSPENDED ) : case strtolower ( self :: RUNNING ) : return true ; default : return false ; } }
Validates the provided status.

@param string $status The deployment status

@return bool
Validates the provided status .