laravel-usage-limiter icon indicating copy to clipboard operation
laravel-usage-limiter copied to clipboard

Added FrequencyEnum for Reset Frequency Values

Open giagara opened this issue 8 months ago • 2 comments

Changes:

Introduced a new enum FrequencyEnum in the file src/Enum/FrequencyEnum.php. The FrequencyEnum defines the possible values for the reset_frequency column. Added the following values in the enum:

  • EVERY_SECOND = 'every second'
  • EVERY_MINUTE = 'every minute'
  • EVERY_HOUR = 'every hour'
  • EVERY_DAY = 'every day'
  • EVERY_WEEK = 'every week'
  • EVERY_TWO_WEEKS = 'every two weeks'
  • EVERY_MONTH = 'every month'
  • EVERY_QUARTER = 'every quarter'
  • EVERY_SIX_MONTHS = 'every six months'
  • EVERY_YEAR = 'every year'

Benefits:

Centralized management of reset frequency values. Simplifies handling time-based operations with the integration of Carbon date-time library. Ensures consistency and reduces the risk of errors associated with manual time calculations.

Please review the changes and let me know if any further modifications are needed.

giagara avatar Jun 21 '24 09:06 giagara