Skip to content

Commit

Permalink
chore: Make AgeGroupRulesFactory and AgeGroupRule internal
Browse files Browse the repository at this point in the history
Make the `AgeGroupRulesFactory` and `AgeGroupRule` classes internal to encapsulate their implementation details and prevent external usage.

- Mark `AgeGroupRulesFactory` and `AgeGroupRule` as internal
- Update access modifiers for internal usage only

This change improves the encapsulation of the internal logic, providing a cleaner and more controlled API surface for external consumers.
  • Loading branch information
LuukvH committed Jan 5, 2024
1 parent a67c67f commit 8b0ebae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions BKRCalculator/AgeGroupRule.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
namespace KDVManager.BKRCalculator;

public class AgeGroupRule
internal class AgeGroupRule
{
public int MinAge { get; }
public int MaxAge { get; }
public int MaxChildren { get; }
public int MinProfessionals { get; }
public List<AgeGroupRuleConstraint> Constraints { get; }
public AgeGroupRule(int minAge, int maxAge, int minProfessionals, int maxChildren, List<AgeGroupRuleConstraint> constraints = null)
public AgeGroupRule(int minAge, int maxAge, int minProfessionals, int maxChildren, List<AgeGroupRuleConstraint>? constraints = null)
{
MinAge = minAge;
MaxAge = maxAge;
Expand Down
2 changes: 1 addition & 1 deletion BKRCalculator/AgeGroupRulesFactory.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace KDVManager.BKRCalculator;

public class AgeGroupRulesFactory
internal class AgeGroupRulesFactory
{
public List<AgeGroupRule> BuildAgeGroupRules()
{
Expand Down

0 comments on commit 8b0ebae

Please sign in to comment.