public function AddVariable(\Peg\Lib\Definitions\Element\ClassVariable $variable)
    {
        $variable->parent_class =& $this;
        $this->variables[$variable->name] = $variable;
        
        return $this;
    }
public function AddVariable(\Peg\Lib\Definitions\Element\ClassVariable $variable)
    {
        $variable->parent_class =& $this;
        $this->variables[$variable->name] = $variable;
        
        return $this;
    }
public function AddVariable ( \ Peg \ Lib \ Definitions \ Element \ ClassVariable $ variable ) { $ variable -> parent_class = & $ this ; $ this -> variables [ $ variable -> name ] = $ variable ; return $ this ; }
Adds a variable to the class.
@param \Peg\Lib\Definitions\Element\ClassVariable $variable
@return \Peg\Lib\Definitions\Element\ClassElement
Adds a variable to the class .