public static function getNameFromNs($className, $namespace)
    {
        $className = static::getFormatNamespace($className, true, true);
        $namespace = static::getFormatNamespace($namespace, true, true);
        if (StringHelper::startsWith($className, $namespace)) {
            $className = substr($className, strlen($namespace));
        }

        return trim($className, '\\');
    }
public static function getNameFromNs($className, $namespace)
    {
        $className = static::getFormatNamespace($className, true, true);
        $namespace = static::getFormatNamespace($namespace, true, true);
        if (StringHelper::startsWith($className, $namespace)) {
            $className = substr($className, strlen($namespace));
        }

        return trim($className, '\\');
    }
public static function getNameFromNs ( $ className , $ namespace ) { $ className = static :: getFormatNamespace ( $ className , true , true ) ; $ namespace = static :: getFormatNamespace ( $ namespace , true , true ) ; if ( StringHelper :: startsWith ( $ className , $ namespace ) ) { $ className = substr ( $ className , strlen ( $ namespace ) ) ; } return trim ( $ className , '\\' ) ; }
Gets a class name from the namespace by trimming out the namespace from the classname.

@param $className
@param $namespace

@return mixed

@since  1.1.0

@author Eddilbert Macharia (http://eddmash.com) <edd.cowan@gmail.com>
Gets a class name from the namespace by trimming out the namespace from the classname .