This pull request (PR) adds the functionality to specify hour precision when dispatching emails using MailatorSchedule. Hour precision allows for fine-grained control over when emails are sent, with the ability to specify specific hours or intervals within a 24-hour period.
Changes Made
The following changes have been made in this PR:
Added a new method precision(array $scheduleAtHours) to the MailatorSchedule class.
The precision method accepts an array of hours or intervals within the range of 1 to 24.
The specified hours or intervals are stored in the schedule_at_hours property of the MailatorSchedule instance.
The precision method returns the updated MailatorSchedule instance to allow for method chaining.
Additional Notes
Hour precision allows for greater control and customization when scheduling and dispatching emails using
Example Usage
To illustrate the usage of hour precision:
Setting ->precision([1]) would schedule email dispatch at 1 AM.
Setting ->precision([2]) would schedule email dispatch at 2 AM.
Setting ->precision([3-4]) would schedule email dispatch between 3-4 AM.
Users can continue this pattern by specifying the desired hour(s) within the range of 1 to 24.
MailatorSchedule.
The precision range for specifying hours or intervals is from 1 to 24, covering the entire 24-hour period.
The MailatorSchedule class has been extended to provide enhanced flexibility and precision in email dispatching.
Please review this PR at your earliest convenience.
Description
This pull request (PR) adds the functionality to specify hour precision when dispatching emails using MailatorSchedule. Hour precision allows for fine-grained control over when emails are sent, with the ability to specify specific hours or intervals within a 24-hour period.
Changes Made
The following changes have been made in this PR:
Added a new method precision(array $scheduleAtHours) to the MailatorSchedule class. The precision method accepts an array of hours or intervals within the range of 1 to 24. The specified hours or intervals are stored in the schedule_at_hours property of the MailatorSchedule instance. The precision method returns the updated MailatorSchedule instance to allow for method chaining.
Additional Notes
Hour precision allows for greater control and customization when scheduling and dispatching emails using
Example Usage
To illustrate the usage of hour precision:
Setting ->precision([1]) would schedule email dispatch at 1 AM. Setting ->precision([2]) would schedule email dispatch at 2 AM. Setting ->precision([3-4]) would schedule email dispatch between 3-4 AM. Users can continue this pattern by specifying the desired hour(s) within the range of 1 to 24.
MailatorSchedule.
The precision range for specifying hours or intervals is from 1 to 24, covering the entire 24-hour period. The MailatorSchedule class has been extended to provide enhanced flexibility and precision in email dispatching. Please review this PR at your earliest convenience.