src/NodeVisitor.php
public function getStubStmts(): array
    {
        foreach ($this->classLikes as $classLike) {
            $this->resolveClassLike($classLike);
        }

        if ($this->allAreGlobal($this->namespaces) && $this->allAreGlobal($this->classLikeNamespaces)) {
            return array_merge(
                $this->reduceStmts($this->classLikeNamespaces),
                $this->reduceStmts($this->namespaces),
                $this->globalNamespace->stmts,
                $this->globalExpressions
            );
        }

        return array_merge(
            $this->classLikeNamespaces,
            $this->namespaces,
            $this->globalNamespace->stmts ? [$this->globalNamespace] : [],
            $this->globalExpressions ? [new Namespace_(null, $this->globalExpressions)] : []
        );
    }
public function getStubStmts(): array
    {
        foreach ($this->classLikes as $classLike) {
            $this->resolveClassLike($classLike);
        }

        if ($this->allAreGlobal($this->namespaces) && $this->allAreGlobal($this->classLikeNamespaces)) {
            return array_merge(
                $this->reduceStmts($this->classLikeNamespaces),
                $this->reduceStmts($this->namespaces),
                $this->globalNamespace->stmts,
                $this->globalExpressions
            );
        }

        return array_merge(
            $this->classLikeNamespaces,
            $this->namespaces,
            $this->globalNamespace->stmts ? [$this->globalNamespace] : [],
            $this->globalExpressions ? [new Namespace_(null, $this->globalExpressions)] : []
        );
    }
public function getStubStmts ( ) : array { foreach ( $ this -> classLikes as $ classLike ) { $ this -> resolveClassLike ( $ classLike ) ; } if ( $ this -> allAreGlobal ( $ this -> namespaces ) && $ this -> allAreGlobal ( $ this -> classLikeNamespaces ) ) { return array_merge ( $ this -> reduceStmts ( $ this -> classLikeNamespaces ) , $ this -> reduceStmts ( $ this -> namespaces ) , $ this -> globalNamespace -> stmts , $ this -> globalExpressions ) ; } return array_merge ( $ this -> classLikeNamespaces , $ this -> namespaces , $ this -> globalNamespace -> stmts ? [ $ this -> globalNamespace ] : [ ] , $ this -> globalExpressions ? [ new Namespace_ ( null , $ this -> globalExpressions ) ] : [ ] ) ; }
Returns the stored set of stub nodes which are built up during traversal.

@return Node[]
Returns the stored set of stub nodes which are built up during traversal .