private function buildNamespaces(Project $project): void
    {
        foreach ($project->getFiles() as $file) {
            foreach ($file->getNamespaces() as $namespaceFqsen) {
                $namespace = $this->getNamespaceByName($project, (string) $namespaceFqsen);
                $this->buildNamespace($file, $namespace);
            }
        }
    }
private function buildNamespaces(Project $project): void
    {
        foreach ($project->getFiles() as $file) {
            foreach ($file->getNamespaces() as $namespaceFqsen) {
                $namespace = $this->getNamespaceByName($project, (string) $namespaceFqsen);
                $this->buildNamespace($file, $namespace);
            }
        }
    }
private function buildNamespaces ( Project $ project ) : void { foreach ( $ project -> getFiles ( ) as $ file ) { foreach ( $ file -> getNamespaces ( ) as $ namespaceFqsen ) { $ namespace = $ this -> getNamespaceByName ( $ project , ( string ) $ namespaceFqsen ) ; $ this -> buildNamespace ( $ file , $ namespace ) ; } } }
Builds the namespace tree with all elements in the project.
Builds the namespace tree with all elements in the project .