Type==RestrictionTypeEnumDTO::$Unique) $restrictionList[]=(new UniqueRestrictionOptionDTO())->Merge($currentValue); if($currentValue->Type==RestrictionTypeEnumDTO::$NumberOfSubmissions) $restrictionList[]=(new NumberOfSubmissionsRestrictionOptionDTO())->Merge($currentValue); if($currentValue->Type==RestrictionTypeEnumDTO::$MustBeLoggedIn) $restrictionList[]=(new MustBeLoggedInRestrictionOptionsDTO())->Merge($currentValue); } return $restrictionList; } }