private function toNamespace($str) {
        $stringParts = preg_split('/_+/', $str);

        foreach($stringParts as $key => $stringPart){
            $stringParts[$key] = ucfirst(strtolower($stringPart));
        }
        return implode('\\', $stringParts) . '\\';
    }
private function toNamespace($str) {
        $stringParts = preg_split('/_+/', $str);

        foreach($stringParts as $key => $stringPart){
            $stringParts[$key] = ucfirst(strtolower($stringPart));
        }
        return implode('\\', $stringParts) . '\\';
    }
private function toNamespace ( $ str ) { $ stringParts = preg_split ( '/_+/' , $ str ) ; foreach ( $ stringParts as $ key => $ stringPart ) { $ stringParts [ $ key ] = ucfirst ( strtolower ( $ stringPart ) ) ; } return implode ( '\\' , $ stringParts ) . '\\' ; }
Converts indicated string to namespace format.

@param string $str
@throws CliException
@return string
@internal
Converts indicated string to namespace format .