Skip to content

Commit

Permalink
Merge pull request apex-enterprise-patterns#41 from OrtooApps/feature…
Browse files Browse the repository at this point in the history
…/timestamped-cache-entries

Improved hiding of date literal setters
  • Loading branch information
rob-baillie-ortoo committed Apr 28, 2022
2 parents eab9439 + 2601d46 commit d36342e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public inherited sharing class ortoo_DateLiterals
*
* The existance allows for the calendar to be re-set in Unit Tests.
*/
@testVisible
public static Date today
{
get
Expand All @@ -35,7 +36,7 @@ public inherited sharing class ortoo_DateLiterals
}
return Date.today();
}
set;
private set;
}

/**
Expand All @@ -44,6 +45,7 @@ public inherited sharing class ortoo_DateLiterals
*
* The existance allows for the clock to be re-set in Unit Tests.
*/
@testVisible
public static DateTime now
{
get
Expand All @@ -54,7 +56,7 @@ public inherited sharing class ortoo_DateLiterals
}
return DateTime.now();
}
set;
private set;
}

/**
Expand Down

0 comments on commit d36342e

Please sign in to comment.