Documentation

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
self

at()

Set the Job execution time.

public at(string $expression) : self

compo

Parameters
$expression : string
Return values
self

august()

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
self

daily()

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
self

december()

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
self

everyMinute()

Set the execution time to every minute.

public everyMinute() : self
Return values
self

february()

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
self

friday()

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
self

hourly()

Set the execution time to every hour.

public hourly([int|string $minute = 0 ]) : self
Parameters
$minute : int|string = 0
Return values
self

january()

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
self

july()

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
self

june()

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
self

march()

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
self

may()

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
self

monday()

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
self

monthly()

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
self

november()

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
self

october()

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
self

saturday()

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
self

september()

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
self

sunday()

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
self

thursday()

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
self

tuesday()

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
self

wednesday()

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
self

weekly()

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
self

validateCronRange()

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
Return values
array<string|int, mixed>

        
On this page

Search results