BackfillPeriod
in package
uses
CloneWith
FinalYes
Describes a time periods and policy and takes Actions as if that time passed by right now, all at once.
Tags
Table of Contents
Properties
- $endTime : DateTimeInterface
- $overlapPolicy : ScheduleOverlapPolicy
- $startTime : DateTimeInterface
Methods
- new() : self
- withEndTime() : self
- End of the range to evaluate schedule in.
- withOverlapPolicy() : self
- Policy for overlaps.
- withStartTime() : self
- Start of the range to evaluate schedule in.
- __construct() : mixed
Properties
$endTime read-only
public
DateTimeInterface
$endTime
$overlapPolicy read-only
public
ScheduleOverlapPolicy
$overlapPolicy
= ScheduleOverlapPolicy::Unspecified
$startTime read-only
public
DateTimeInterface
$startTime
Methods
new()
public
static new(DateTimeInterface|string $startTime, DateTimeInterface|string $endTime[, ScheduleOverlapPolicy $overlapPolicy = ScheduleOverlapPolicy::Unspecified ]) : self
Parameters
- $startTime : DateTimeInterface|string
-
Start of the range to evaluate schedule in.
- $endTime : DateTimeInterface|string
-
End of the range to evaluate schedule in.
- $overlapPolicy : ScheduleOverlapPolicy = ScheduleOverlapPolicy::Unspecified
-
Policy for overlaps.
Return values
selfwithEndTime()
End of the range to evaluate schedule in.
public
withEndTime(DateTimeInterface|string $dateTime) : self
Parameters
- $dateTime : DateTimeInterface|string
Return values
selfwithOverlapPolicy()
Policy for overlaps.
public
withOverlapPolicy(ScheduleOverlapPolicy $overlapPolicy) : self
Parameters
- $overlapPolicy : ScheduleOverlapPolicy
Return values
selfwithStartTime()
Start of the range to evaluate schedule in.
public
withStartTime(DateTimeInterface|string $dateTime) : self
Parameters
- $dateTime : DateTimeInterface|string
Return values
self__construct()
private
__construct(DateTimeInterface $startTime, DateTimeInterface $endTime[, ScheduleOverlapPolicy $overlapPolicy = ScheduleOverlapPolicy::Unspecified ]) : mixed
Parameters
- $startTime : DateTimeInterface
-
Start of the range to evaluate schedule in.
- $endTime : DateTimeInterface
-
End of the range to evaluate schedule in.
- $overlapPolicy : ScheduleOverlapPolicy = ScheduleOverlapPolicy::Unspecified