메소드 | 설명 | |
---|---|---|
__construct ( integer $dayOfWeek, callable $openingIntervalsEvaluator ) | Creates a new special day. | |
getClosestOpeningTimeAfter ( |
||
getClosestOpeningTimeBefore ( |
||
getClosingTime ( DateTime $context ) | ||
getOpeningTime ( DateTime $context ) | ||
isTimeWithinOpeningHours ( |
||
jsonSerialize ( ) | ||
serialize ( ) | ||
unserialize ( $serialized ) |
메소드 | 설명 | |
---|---|---|
evaluateOpeningIntervals ( DateTime $context ) | Evaluates the opening intervals. | |
getSerializer ( ) : SuperClosure\Serializer | Gets a closure serializer object. |
public __construct ( integer $dayOfWeek, callable $openingIntervalsEvaluator ) | ||
$dayOfWeek | integer | The day of week |
$openingIntervalsEvaluator | callable | A callable to evaluate opening intervals of the day |
public getClosestOpeningTimeAfter ( |
||
$time | ||
$context | DateTime |
public getClosestOpeningTimeBefore ( |
||
$time | ||
$context | DateTime |
public isTimeWithinOpeningHours ( |
||
$time | ||
$context | DateTime |