public function AddEnumeration(\Peg\Lib\Definitions\Element\Enumeration $enumeration)
    {
        $enumeration->parent_class =& $this;
        $this->enumerations[$enumeration->name] = $enumeration;
        
        return $this;
    }
public function AddEnumeration(\Peg\Lib\Definitions\Element\Enumeration $enumeration)
    {
        $enumeration->parent_class =& $this;
        $this->enumerations[$enumeration->name] = $enumeration;
        
        return $this;
    }
public function AddEnumeration ( \ Peg \ Lib \ Definitions \ Element \ Enumeration $ enumeration ) { $ enumeration -> parent_class = & $ this ; $ this -> enumerations [ $ enumeration -> name ] = $ enumeration ; return $ this ; }
Adds an enumeration to the class.
@param \Peg\Lib\Definitions\Element\Enumeration $enumeration
@return \Peg\Lib\Definitions\Element\ClassElement
Adds an enumeration to the class .