WorkTimeServiceDecorator extends WorkTimeService
Table of Contents
Constants
- WORK_TIME_OPTION = 'MATCH_WORK_TIME'
Methods
- __construct() : mixed
- getClosestWorkTime() : DateTime
- isHoliday() : bool
- isWorkTime() : bool
Constants
WORK_TIME_OPTION
public
mixed
WORK_TIME_OPTION
= 'MATCH_WORK_TIME'
Methods
__construct()
public
__construct(WorkTimeService $source) : mixed
Parameters
- $source : WorkTimeService
getClosestWorkTime()
public
getClosestWorkTime([int $offsetInDays = 7 ]) : DateTime
Parameters
- $offsetInDays : int = 7
Return values
DateTimeisHoliday()
public
isHoliday(int $timestamp) : bool
Parameters
- $timestamp : int
Return values
boolisWorkTime()
public
isWorkTime(int $timestamp) : bool
Parameters
- $timestamp : int