TimePeriods
in package

Wrapper for an array of TimePeriod.

Tags
since
1.2.1

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
since
1.2.1

Methods

__clone()

public __clone() : mixed
Tags
since
1.2.1
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
since
1.2.1
Return values
mixed

clonePeriods()

public clonePeriods() : array<string|int, TimePeriod>
Tags
since
1.2.1
Return values
array<string|int, TimePeriod>

diffPeriod()

public diffPeriod(TimePeriod $period) : mixed
Parameters
$period : TimePeriod
Tags
since
1.2.1
Return values
mixed

hasPeriod()

public hasPeriod(TimePeriod|string $period) : bool
Parameters
$period : TimePeriod|string
Tags
since
1.2.1
Return values
bool

isEmpty()

public isEmpty() : bool
Tags
since
1.2.1
Return values
bool

mergePeriod()

public mergePeriod(TimePeriod|string $period) : mixed
Parameters
$period : TimePeriod|string
Tags
since
1.2.1
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
since
1.2.1
Return values
mixed

setDate()

public setDate(DateTime $date) : mixed
Parameters
$date : DateTime
Tags
since
1.2.1
Return values
mixed

Search results