protected function getDurationTypeDropDownArray() { if ($this->model->getValueEvaluationType() == 'Date') { return TimeDurationUtil::getDateOnlyValueAndLabels(); } elseif ($this->model->getValueEvaluationType() == 'DateTime') { return TimeDurationUtil::getValueAndLabels(); } else { throw new NotSupportedException(); } }