public static function getComponentNs(string $component): string
    {
        if ($component === 'framework') {
            return '';
        }

        $namespace = '';
        $nsAry = explode('-', $component);
        foreach ($nsAry as $ns) {
            $namespace .= "\\" . ucfirst($ns);
        }

        return $namespace;
    }
public static function getComponentNs(string $component): string
    {
        if ($component === 'framework') {
            return '';
        }

        $namespace = '';
        $nsAry = explode('-', $component);
        foreach ($nsAry as $ns) {
            $namespace .= "\\" . ucfirst($ns);
        }

        return $namespace;
    }
public static function getComponentNs ( string $ component ) : string { if ( $ component === 'framework' ) { return '' ; } $ namespace = '' ; $ nsAry = explode ( '-' , $ component ) ; foreach ( $ nsAry as $ ns ) { $ namespace .= "\\" . ucfirst ( $ ns ) ; } return $ namespace ; }
Get the default namespace of component

@param string $component
@return string
Get the default namespace of component