public function AddClass(
        \Peg\Lib\Definitions\Element\ClassElement $class, 
        $namespace = "\\"
    )
    {
        $this->CreateNamespace($namespace);
        
        $class->header =& $this;
        $class->namespace =& $this->namespaces[$namespace];

        $this->namespaces[$namespace]
            ->classes[$class->name] = $class
        ;
    }
public function AddClass(
        \Peg\Lib\Definitions\Element\ClassElement $class, 
        $namespace = "\\"
    )
    {
        $this->CreateNamespace($namespace);
        
        $class->header =& $this;
        $class->namespace =& $this->namespaces[$namespace];

        $this->namespaces[$namespace]
            ->classes[$class->name] = $class
        ;
    }
public function AddClass ( \ Peg \ Lib \ Definitions \ Element \ ClassElement $ class , $ namespace = "\\" ) { $ this -> CreateNamespace ( $ namespace ) ; $ class -> header = & $ this ; $ class -> namespace = & $ this -> namespaces [ $ namespace ] ; $ this -> namespaces [ $ namespace ] -> classes [ $ class -> name ] = $ class ; }
Adds a new class.
@param \Peg\Lib\Definitions\Element\ClassElement $class
@param string $namespace
Adds a new class .