OphCoTherapyapplication_DecisionTreeNode::defaultsValidation PHP Method

defaultsValidation() public method

* can only have one source for the default response for the node
public defaultsValidation ( $attribute )
    public function defaultsValidation($attribute)
    {
        if ($this->default_function && $this->default_value) {
            $this->addError($attribute, 'Cannot have two default values for node response');
        }
    }