TimePeriods
in package
Wrapper for an array of TimePeriod.
Tags
Table of Contents
- $periods : array<string|int, TimePeriod>
- __clone() : mixed
- __construct() : mixed
- clonePeriods() : array<string|int, TimePeriod>
- diffPeriod() : mixed
- hasPeriod() : bool
- isEmpty() : bool
- mergePeriod() : mixed
- mergePeriods() : mixed
- setDate() : mixed
Properties
$periods
public
array<string|int, TimePeriod>
$periods
= []
Tags
Methods
__clone()
public
__clone() : mixed
Tags
Return values
mixed —__construct()
public
__construct([array<string|int, TimePeriod>|array<string|int, string> $periods = [] ]) : mixed
Parameters
- $periods : array<string|int, TimePeriod>|array<string|int, string> = []
-
Optional.
Tags
Return values
mixed —clonePeriods()
public
clonePeriods() : array<string|int, TimePeriod>
Tags
Return values
array<string|int, TimePeriod> —diffPeriod()
public
diffPeriod(TimePeriod $period) : mixed
Parameters
- $period : TimePeriod
Tags
Return values
mixed —hasPeriod()
public
hasPeriod(TimePeriod|string $period) : bool
Parameters
- $period : TimePeriod|string
Tags
Return values
bool —isEmpty()
public
isEmpty() : bool
Tags
Return values
bool —mergePeriod()
public
mergePeriod(TimePeriod|string $period) : mixed
Parameters
- $period : TimePeriod|string
Tags
Return values
mixed —mergePeriods()
public
mergePeriods(array<string|int, TimePeriod>|array<string|int, string>|TimePeriods $periods) : mixed
Parameters
- $periods : array<string|int, TimePeriod>|array<string|int, string>|TimePeriods
Tags
Return values
mixed —setDate()
public
setDate(DateTime $date) : mixed
Parameters
- $date : DateTime