public static function getNamespace($namespaceClass)
    {
        if (is_object($namespaceClass) === true) {
            $namespaceClass = get_class($namespaceClass);
        }
    
        $lastSlashPosition = mb_strrpos($namespaceClass, '\\');
    
        if ($lastSlashPosition !== false) {
            return mb_substr($namespaceClass, 0, $lastSlashPosition);
        }
    
        return "";
    }
public static function getNamespace($namespaceClass)
    {
        if (is_object($namespaceClass) === true) {
            $namespaceClass = get_class($namespaceClass);
        }
    
        $lastSlashPosition = mb_strrpos($namespaceClass, '\\');
    
        if ($lastSlashPosition !== false) {
            return mb_substr($namespaceClass, 0, $lastSlashPosition);
        }
    
        return "";
    }
public static function getNamespace ( $ namespaceClass ) { if ( is_object ( $ namespaceClass ) === true ) { $ namespaceClass = get_class ( $ namespaceClass ) ; } $ lastSlashPosition = mb_strrpos ( $ namespaceClass , '\\' ) ; if ( $ lastSlashPosition !== false ) { return mb_substr ( $ namespaceClass , 0 , $ lastSlashPosition ) ; } return "" ; }
Get the name space part of a fully namespaced class. Returns empty string
if the class had no namespace part.
@param $namespaceClass
@return string
Get the name space part of a fully namespaced class . Returns empty string if the class had no namespace part .