public function addInheritance($inhdata)
    {
        if ($inhdata instanceof Inheritance) {
            $inh = $inhdata;
            $inh->setColumn($this);
            if ($this->inheritanceList === null) {
                $this->inheritanceList = array();
                $this->isEnumeratedClasses = true;
            }
            $this->inheritanceList[] = $inh;

            return $inh;
        } else {
            $inh = new Inheritance();
            $inh->loadFromXML($inhdata);

            return $this->addInheritance($inh);
        }
    }
public function addInheritance($inhdata)
    {
        if ($inhdata instanceof Inheritance) {
            $inh = $inhdata;
            $inh->setColumn($this);
            if ($this->inheritanceList === null) {
                $this->inheritanceList = array();
                $this->isEnumeratedClasses = true;
            }
            $this->inheritanceList[] = $inh;

            return $inh;
        } else {
            $inh = new Inheritance();
            $inh->loadFromXML($inhdata);

            return $this->addInheritance($inh);
        }
    }
public function addInheritance ( $ inhdata ) { if ( $ inhdata instanceof Inheritance ) { $ inh = $ inhdata ; $ inh -> setColumn ( $ this ) ; if ( $ this -> inheritanceList === null ) { $ this -> inheritanceList = array ( ) ; $ this -> isEnumeratedClasses = true ; } $ this -> inheritanceList [ ] = $ inh ; return $ inh ; } else { $ inh = new Inheritance ( ) ; $ inh -> loadFromXML ( $ inhdata ) ; return $ this -> addInheritance ( $ inh ) ; } }
Adds a new inheritance definition to the inheritance list and set the
parent column of the inheritance to the current column

@param Inheritance|string $inhdata Inheritance or XML data.

@return Inheritance
Adds a new inheritance definition to the inheritance list and set the parent column of the inheritance to the current column