PortalSchedule implements ScheduleInterface
Table of Contents
Interfaces
Methods
- __construct() : mixed
- getSettings() : array<string|int, mixed>
- getShiftEnd() : DateTime
- getShiftStart() : DateTime
- getWorkDayDuration() : int
- isWeekend() : bool
- isWorkTime() : bool
Methods
__construct()
public
__construct([array<string|int, mixed>|null $settings = null ]) : mixed
Parameters
- $settings : array<string|int, mixed>|null = null
getSettings()
public
getSettings() : array<string|int, mixed>
Return values
array<string|int, mixed>getShiftEnd()
public
getShiftEnd([DateTime|null $date = null ]) : DateTime
Parameters
- $date : DateTime|null = null
Return values
DateTimegetShiftStart()
public
getShiftStart([DateTime|null $date = null ]) : DateTime
Parameters
- $date : DateTime|null = null
Return values
DateTimegetWorkDayDuration()
public
getWorkDayDuration([DateTime|null $date = null ]) : int
Parameters
- $date : DateTime|null = null
Return values
intisWeekend()
public
isWeekend(DateTime $date) : bool
Parameters
- $date : DateTime
Return values
boolisWorkTime()
public
isWorkTime(DateTime $date) : bool
Parameters
- $date : DateTime