Type) { case 'ShowHide': $newValue[]=(new ShowHideConditionOptionsDTO())->Merge($currentCondition); break; case 'Validation': $newValue[]=(new ValidationConditionOptionsDTO())->Merge($currentCondition); break; case 'ShowHideStep': $newValue[]=(new ShowHideStepConditionOptionsDTO())->Merge($currentCondition); break; case 'SkipRepeaterItem': $newValue[]=(new SkipRepeaterItemConditionOptionsDTO())->Merge($currentCondition); break; default: $newValue[]=$currentCondition; } } return $newValue; } }