OphCoTherapyapplication_DecisionTreeNode::getDefaultValue PHP Method

getDefaultValue() public method

* Works out the default value for this node, based on the provided $patient
public getDefaultValue ( $side, $patient, $episode )
    public function getDefaultValue($side, $patient, $episode)
    {
        if ($this->default_value) {
            return $this->default_value;
        } elseif ($this->default_function && $episode) {
            // call the appropriate default function
            return $this->{$this->default_function}($side, $patient, $episode);
        } else {
            return;
        }
    }