public canAddChild ( ) |
public function canAddChild()
{
if ($this->outcome) {
return false;
}
if ($this->response_type->datatype == 'bool') {
if (count($this->children) >= 2) {
return false;
}
}
return true;
}