Skip to content

Commit 557f6ea

Browse files
wip: add code doc
1 parent 43c9c78 commit 557f6ea

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Sources/Implementation/DefaultDecisionService.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,14 @@ class DefaultDecisionService: OPTDecisionService {
237237
return decisions
238238
}
239239

240+
/// Determines the feature decision for a feature flag, considering holdout, experiment and rollout
241+
/// - Parameters:
242+
/// - config: The project configuration.
243+
/// - featureFlag: The feature flag to evaluate.
244+
/// - user: The user context.
245+
/// - userProfileTracker: Optional tracker for user profile data.
246+
/// - options: Optional decision options.
247+
/// - Returns: A `DecisionResponse` with the feature decision (if any) and reasons.
240248
func getDecisionForFlag(config: ProjectConfig,
241249
featureFlag: FeatureFlag,
242250
user: OptimizelyUserContext,
@@ -274,7 +282,7 @@ class DefaultDecisionService: OPTDecisionService {
274282
}
275283
}
276284

277-
/// Determines the feature decision for a feature flag, considering experiments and holdouts.
285+
/// Determines the feature decision for a feature flag, considering experiments
278286
/// - Parameters:
279287
/// - config: The project configuration.
280288
/// - featureFlag: The feature flag to evaluate.

0 commit comments

Comments
 (0)