private function getNamespaceByName(Project $project, $name): Namespace_
    {
        $existingNamespaces = $project->getNamespaces();

        if (isset($existingNamespaces[$name])) {
            return $existingNamespaces[$name];
        }

        $namespace = new Namespace_(new Fqsen($name));
        $project->addNamespace($namespace);
        return $namespace;
    }
private function getNamespaceByName(Project $project, $name): Namespace_
    {
        $existingNamespaces = $project->getNamespaces();

        if (isset($existingNamespaces[$name])) {
            return $existingNamespaces[$name];
        }

        $namespace = new Namespace_(new Fqsen($name));
        $project->addNamespace($namespace);
        return $namespace;
    }
private function getNamespaceByName ( Project $ project , $ name ) : Namespace_ { $ existingNamespaces = $ project -> getNamespaces ( ) ; if ( isset ( $ existingNamespaces [ $ name ] ) ) { return $ existingNamespaces [ $ name ] ; } $ namespace = new Namespace_ ( new Fqsen ( $ name ) ) ; $ project -> addNamespace ( $ namespace ) ; return $ namespace ; }
Gets Namespace from the project if it exists, otherwise returns a new namepace
Gets Namespace from the project if it exists otherwise returns a new namepace