src/Core/Doctrine/Annotation/Scanner/FileInspector.php
private function parseNamespaceString($tokens, $offset): string
    {
        $namespace = '';
        $tokenCount = \count($tokens);
        for ($offset++; $offset < $tokenCount; $offset++) {
            if (!\is_array($tokens[$offset])) {
                break;
            }
            if (\T_STRING === $tokens[$offset][0]) {
                $namespace .= $tokens[$offset][1];
            } else {
                break;
            }
            $offset++;
            if (!\is_array($tokens[$offset])) {
                continue;
            }
            if (\T_NS_SEPARATOR === $tokens[$offset][0]) {
                $namespace .= $tokens[$offset][1];
            } else {
                break;
            }
        }

        return $namespace;
    }
private function parseNamespaceString($tokens, $offset): string
    {
        $namespace = '';
        $tokenCount = \count($tokens);
        for ($offset++; $offset < $tokenCount; $offset++) {
            if (!\is_array($tokens[$offset])) {
                break;
            }
            if (\T_STRING === $tokens[$offset][0]) {
                $namespace .= $tokens[$offset][1];
            } else {
                break;
            }
            $offset++;
            if (!\is_array($tokens[$offset])) {
                continue;
            }
            if (\T_NS_SEPARATOR === $tokens[$offset][0]) {
                $namespace .= $tokens[$offset][1];
            } else {
                break;
            }
        }

        return $namespace;
    }
@param array $tokens
@param integer $offset

@return string