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([int $userId = 0 ]) : mixed
Parameters
- $userId : int = 0
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