MethodSchedule implements iMethod
Table of Contents
Interfaces
Methods
- __construct() : mixed
- Constructor.
- apply() : void
- Apply method.
- getCode() : string
- Get code.
- getNextDate() : DateTime
- Get next date.
- getTimeList() : array<string|int, mixed>
- Get time list.
- parseDaysOfMonth() : array<string|int, mixed>|null
- Parse days of month.
- parseDaysOfWeek() : array<string|int, mixed>|null
- Parse days of week.
- parseMonthsOfYear() : array<string|int, mixed>|null
- Parse months of year.
- parseTimesOfDay() : array<string|int, mixed>|null
- Parse times of day.
- revoke() : void
- Revoke method.
- setDaysOfMonth() : $this
- Set days of month.
- setDaysOfWeek() : $this
- Set days of week.
- setMonthsOfYear() : $this
- Set month of year.
- setTime() : $this
- Set time.
Methods
__construct()
Constructor.
public
__construct(Letter $letter) : mixed
Parameters
- $letter : Letter
-
Letter.
apply()
Apply method.
public
apply() : void
getCode()
Get code.
public
getCode() : string
Return values
stringgetNextDate()
Get next date.
public
getNextDate() : DateTime
Tags
Return values
DateTimegetTimeList()
Get time list.
public
static getTimeList() : array<string|int, mixed>
Return values
array<string|int, mixed>parseDaysOfMonth()
Parse days of month.
public
static parseDaysOfMonth(string $daysOfMonth) : array<string|int, mixed>|null
Parameters
- $daysOfMonth : string
-
Days of month.
Return values
array<string|int, mixed>|nullparseDaysOfWeek()
Parse days of week.
public
static parseDaysOfWeek(string $daysOfWeek) : array<string|int, mixed>|null
Parameters
- $daysOfWeek : string
-
Days of week.
Return values
array<string|int, mixed>|nullparseMonthsOfYear()
Parse months of year.
public
static parseMonthsOfYear(string $monthsOfYear) : array<string|int, mixed>|null
Parameters
- $monthsOfYear : string
-
Months of year.
Return values
array<string|int, mixed>|nullparseTimesOfDay()
Parse times of day.
public
static parseTimesOfDay(string $time) : array<string|int, mixed>|null
Parameters
- $time : string
-
Time.
Return values
array<string|int, mixed>|nullrevoke()
Revoke method.
public
revoke() : void
setDaysOfMonth()
Set days of month.
public
setDaysOfMonth(array<string|int, int> $days) : $this
Parameters
- $days : array<string|int, int>
-
Days.
Return values
$thissetDaysOfWeek()
Set days of week.
public
setDaysOfWeek(array<string|int, int> $days) : $this
Parameters
- $days : array<string|int, int>
-
Days.
Return values
$thissetMonthsOfYear()
Set month of year.
public
setMonthsOfYear(array<string|int, int> $months) : $this
Parameters
- $months : array<string|int, int>
-
Months.
Return values
$thissetTime()
Set time.
public
setTime(string $hours, string $minutes) : $this
Parameters
- $hours : string
-
Hours.
- $minutes : string
-
Minutes.