public static function pathToFullyQualifiedName($string)
    {
        $parts = explode('/', $string);
        $namespace = '';
        foreach ($parts as $part) {
            $namespace .= Strings::underscoreToCamelCase($part) . '\\';
        }
        return rtrim($namespace, '\\');
    }
public static function pathToFullyQualifiedName($string)
    {
        $parts = explode('/', $string);
        $namespace = '';
        foreach ($parts as $part) {
            $namespace .= Strings::underscoreToCamelCase($part) . '\\';
        }
        return rtrim($namespace, '\\');
    }
public static function pathToFullyQualifiedName ( $ string ) { $ parts = explode ( '/' , $ string ) ; $ namespace = '' ; foreach ( $ parts as $ part ) { $ namespace .= Strings :: underscoreToCamelCase ( $ part ) . '\\' ; } return rtrim ( $ namespace , '\\' ) ; }
Transforms path to class name with namespaces.

Example:
<code>
$string = 'api/multiple_ns';
$namespace = ClassName::pathToFullyQualifiedName($string);
</code>
Result:
<code>
Api\\MultipleNs
</code>

@param string $string
@return string
Transforms path to class name with namespaces .