public function getNameSpace(string $name) : string
    {
        $segs = [];
        $name = str_replace("/", "\\", $name);
        $namespace = explode("\\", $name);
        array_pop($namespace);

        array_walk($namespace, function (&$value) {
            $value = $this->removeNoneAlpherNumeric($value);
        });

        return implode("\\", $namespace);
    }
public function getNameSpace(string $name) : string
    {
        $segs = [];
        $name = str_replace("/", "\\", $name);
        $namespace = explode("\\", $name);
        array_pop($namespace);

        array_walk($namespace, function (&$value) {
            $value = $this->removeNoneAlpherNumeric($value);
        });

        return implode("\\", $namespace);
    }
public function getNameSpace ( string $ name ) : string { $ segs = [ ] ; $ name = str_replace ( "/" , "\\" , $ name ) ; $ namespace = explode ( "\\" , $ name ) ; array_pop ( $ namespace ) ; array_walk ( $ namespace , function ( & $ value ) { $ value = $ this -> removeNoneAlpherNumeric ( $ value ) ; } ) ; return implode ( "\\" , $ namespace ) ; }
Work out name space of the class

@param string $name
@return string
Work out name space of the class