PDepend\Source\Language\PHP\PHPBuilder::buildNamespace PHP Method

buildNamespace() public method

Builds a new package instance.
public buildNamespace ( string $name ) : PDepend\Source\AST\ASTNamespace
$name string The package name.
return PDepend\Source\AST\ASTNamespace
    public function buildNamespace($name)
    {
        if (!isset($this->namespaces[$name])) {
            // Debug package creation
            Log::debug('Creating: \\PDepend\\Source\\AST\\ASTNamespace(' . $name . ')');
            $this->namespaces[$name] = new ASTNamespace($name);
        }
        return $this->namespaces[$name];
    }
PHPBuilder