WorkTimeService
Table of Contents
Constants
-
WORK_TIME_OPTION
= 'MATCH_WORK_TIME'
Methods
-
__construct()
: mixed
-
getClosestWorkTime()
: DateTime
-
isHoliday()
: bool
-
isWorkTime()
: bool
WORK_TIME_OPTION
public
mixed
WORK_TIME_OPTION
= 'MATCH_WORK_TIME'
__construct()
public
__construct([int $userId = 0 ]) : mixed
Parameters
-
$userId
: int
= 0
-
getClosestWorkTime()
public
getClosestWorkTime([int $offsetInDays = 7 ]) : DateTime
Parameters
-
$offsetInDays
: int
= 7
-
isHoliday()
public
isHoliday(int $timestamp) : bool
Parameters
-
$timestamp
: int
-
isWorkTime()
public
isWorkTime(int $timestamp) : bool
Parameters
-
$timestamp
: int
-