public function parseUseStatements($namespaceName)
    {
        $statements = [];
        while (($token = $this->next())) {
            if ($token[0] === T_USE) {
                $statements = array_merge($statements, $this->parseUseStatement());
                continue;
            }
            if ($token[0] !== T_NAMESPACE || $this->parseNamespace() != $namespaceName) {
                continue;
            }

            // Get fresh array for new namespace. This is to prevent the parser to collect the use statements
            // for a previous namespace with the same name. This is the case if a namespace is defined twice
            // or if a namespace with the same name is commented out.
            $statements = [];
        }

        return $statements;
    }
public function parseUseStatements($namespaceName)
    {
        $statements = [];
        while (($token = $this->next())) {
            if ($token[0] === T_USE) {
                $statements = array_merge($statements, $this->parseUseStatement());
                continue;
            }
            if ($token[0] !== T_NAMESPACE || $this->parseNamespace() != $namespaceName) {
                continue;
            }

            // Get fresh array for new namespace. This is to prevent the parser to collect the use statements
            // for a previous namespace with the same name. This is the case if a namespace is defined twice
            // or if a namespace with the same name is commented out.
            $statements = [];
        }

        return $statements;
    }
public function parseUseStatements ( $ namespaceName ) { $ statements = [ ] ; while ( ( $ token = $ this -> next ( ) ) ) { if ( $ token [ 0 ] === T_USE ) { $ statements = array_merge ( $ statements , $ this -> parseUseStatement ( ) ) ; continue ; } if ( $ token [ 0 ] !== T_NAMESPACE || $ this -> parseNamespace ( ) != $ namespaceName ) { continue ; } // Get fresh array for new namespace. This is to prevent the parser to collect the use statements // for a previous namespace with the same name. This is the case if a namespace is defined twice // or if a namespace with the same name is commented out. $ statements = [ ] ; } return $ statements ; }
Gets all use statements.

@param string $namespaceName The namespace name of the reflected class.

@return array A list with all found use statements.
Gets all use statements .