IntervalTrait
Trait IntervalTrait
Table of Contents
Methods
- april() : self
- Set the execution time to every April.
- at() : self
- Set the Job execution time.
- august() : self
- Set the execution time to every August.
- daily() : self
- Set the execution time to once a day.
- december() : self
- Set the execution time to every December.
- everyMinute() : self
- Set the execution time to every minute.
- february() : self
- Set the execution time to every February.
- friday() : self
- Set the execution time to every Friday.
- hourly() : self
- Set the execution time to every hour.
- january() : self
- Set the execution time to every January.
- july() : self
- Set the execution time to every July.
- june() : self
- Set the execution time to every June.
- march() : self
- Set the execution time to every March.
- may() : self
- Set the execution time to every May.
- monday() : self
- Set the execution time to every Monday.
- monthly() : self
- Set the execution time to once a month.
- november() : self
- Set the execution time to every November.
- october() : self
- Set the execution time to every October.
- saturday() : self
- Set the execution time to every Saturday.
- september() : self
- Set the execution time to every September.
- sunday() : self
- Set the execution time to every Sunday.
- thursday() : self
- Set the execution time to every Thursday.
- tuesday() : self
- Set the execution time to every Tuesday.
- wednesday() : self
- Set the execution time to every Wednesday.
- weekly() : self
- Set the execution time to once a week.
- validateCronRange() : mixed
- Validate sequence of cron expression.
- validateCronSequence() : array<string|int, mixed>
- Validate sequence of cron expression.
Methods
april()
Set the execution time to every April.
public
april([int|string $day = 1 ][, int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $day : int|string = 1
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selfat()
Set the Job execution time.
public
at(string $expression) : self
compo
Parameters
- $expression : string
Return values
selfaugust()
Set the execution time to every August.
public
august([int|string $day = 1 ][, int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $day : int|string = 1
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selfdaily()
Set the execution time to once a day.
public
daily([int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selfdecember()
Set the execution time to every December.
public
december([int|string $day = 1 ][, int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $day : int|string = 1
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selfeveryMinute()
Set the execution time to every minute.
public
everyMinute() : self
Return values
selffebruary()
Set the execution time to every February.
public
february([int|string $day = 1 ][, int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $day : int|string = 1
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selffriday()
Set the execution time to every Friday.
public
friday([int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selfhourly()
Set the execution time to every hour.
public
hourly([int|string $minute = 0 ]) : self
Parameters
- $minute : int|string = 0
Return values
selfjanuary()
Set the execution time to every January.
public
january([int|string $day = 1 ][, int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $day : int|string = 1
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selfjuly()
Set the execution time to every July.
public
july([int|string $day = 1 ][, int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $day : int|string = 1
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selfjune()
Set the execution time to every June.
public
june([int|string $day = 1 ][, int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $day : int|string = 1
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selfmarch()
Set the execution time to every March.
public
march([int|string $day = 1 ][, int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $day : int|string = 1
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selfmay()
Set the execution time to every May.
public
may([int|string $day = 1 ][, int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $day : int|string = 1
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selfmonday()
Set the execution time to every Monday.
public
monday([int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selfmonthly()
Set the execution time to once a month.
public
monthly([int|string $month = '*' ][, int|string $day = 1 ][, int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $month : int|string = '*'
- $day : int|string = 1
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selfnovember()
Set the execution time to every November.
public
november([int|string $day = 1 ][, int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $day : int|string = 1
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selfoctober()
Set the execution time to every October.
public
october([int|string $day = 1 ][, int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $day : int|string = 1
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selfsaturday()
Set the execution time to every Saturday.
public
saturday([int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selfseptember()
Set the execution time to every September.
public
september([int|string $day = 1 ][, int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $day : int|string = 1
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selfsunday()
Set the execution time to every Sunday.
public
sunday([int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selfthursday()
Set the execution time to every Thursday.
public
thursday([int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selftuesday()
Set the execution time to every Tuesday.
public
tuesday([int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selfwednesday()
Set the execution time to every Wednesday.
public
wednesday([int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selfweekly()
Set the execution time to once a week.
public
weekly([int|string $weekday = 0 ][, int|string $hour = 0 ][, int|string $minute = 0 ]) : self
Parameters
- $weekday : int|string = 0
- $hour : int|string = 0
- $minute : int|string = 0
Return values
selfvalidateCronRange()
Validate sequence of cron expression.
private
validateCronRange(int|string|null $value, int $min, int $max) : mixed
Parameters
- $value : int|string|null
- $min : int
- $max : int
validateCronSequence()
Validate sequence of cron expression.
private
validateCronSequence([int|string|null $minute = null ][, int|string|null $hour = null ][, int|string|null $day = null ][, int|string|null $month = null ][, int|string|null $weekday = null ]) : array<string|int, mixed>
Parameters
- $minute : int|string|null = null
- $hour : int|string|null = null
- $day : int|string|null = null
- $month : int|string|null = null
- $weekday : int|string|null = null