WeeklyDispatchCalendar
in package
implements
DispatchCalendarInterface
FinalYes
Dispatch calendar that delays departures until the next matching weekly dispatch moment.
Table of Contents
Interfaces
- DispatchCalendarInterface
- Adjusts the earliest dispatch time for a timed movement edge.
Properties
Methods
- __construct() : mixed
- Create one weekly dispatch calendar around a reusable weekly schedule.
- dispatchTime() : int
- Return the first dispatch time at or after the edge's earliest dispatch time that matches the weekly schedule.
Properties
$calendar read-only
public
WeeklyCalendar
$calendar
Methods
__construct()
Create one weekly dispatch calendar around a reusable weekly schedule.
public
__construct(WeeklyCalendar $calendar) : mixed
Parameters
- $calendar : WeeklyCalendar
dispatchTime()
Return the first dispatch time at or after the edge's earliest dispatch time that matches the weekly schedule.
public
dispatchTime(MovementEdge $edge, TimedDurationContext $context) : int
Parameters
- $edge : MovementEdge
- $context : TimedDurationContext
Attributes
- #[Override]