/** * Adds a child * @access public * @param object EvaluationObject &$child The child object */ function addChild(&$child) { parent::addChild($child); $this->childType = $child->x_instanceof(); }
/** * Adds a child and sets the value to pos+1 * @access public * @param object EvaluationObject &$child The child object * @throws error */ function addChild(&$child) { parent::addChild($child); if ($child->getValue() == 0) { $child->setValue($child->getPosition() + 1); } }