private function parseNamespace(\ArrayIterator $tokens)
    {
        // skip to the first string or namespace separator
        $this->skipToNextStringOrNamespaceSeparator($tokens);

        $name = '';
        while ($tokens->valid() && ($tokens->current()[0] === T_STRING || $tokens->current()[0] === T_NS_SEPARATOR)
        ) {
            $name .= $tokens->current()[1];
            $tokens->next();
        }

        return $name;
    }
private function parseNamespace(\ArrayIterator $tokens)
    {
        // skip to the first string or namespace separator
        $this->skipToNextStringOrNamespaceSeparator($tokens);

        $name = '';
        while ($tokens->valid() && ($tokens->current()[0] === T_STRING || $tokens->current()[0] === T_NS_SEPARATOR)
        ) {
            $name .= $tokens->current()[1];
            $tokens->next();
        }

        return $name;
    }
private function parseNamespace ( \ ArrayIterator $ tokens ) { // skip to the first string or namespace separator $ this -> skipToNextStringOrNamespaceSeparator ( $ tokens ) ; $ name = '' ; while ( $ tokens -> valid ( ) && ( $ tokens -> current ( ) [ 0 ] === T_STRING || $ tokens -> current ( ) [ 0 ] === T_NS_SEPARATOR ) ) { $ name .= $ tokens -> current ( ) [ 1 ] ; $ tokens -> next ( ) ; } return $ name ; }
Deduce the name from tokens when we are at the T_NAMESPACE token.

@return string
Deduce the name from tokens when we are at the T_NAMESPACE token .