abstract class TimeEvent

An abstract class that represents a TimeEvent resource.

Traits

Trait which provides helper methods for converting DateTime input formats.

Properties

protected DateTimeInterface $time

Methods

__construct(array $options = [])

Create a new TimeEvent.

time()

Return the time of this event.

setTime(DateTimeInterface|int|float $time = null)

Set the time for this event.

Details

at line 39
__construct(array $options = [])

Create a new TimeEvent.

Parameters

array $options [optional] Configuration options.

 @type \DateTimeInterface|int|float $time The time of this event.

at line 52
DateTimeInterface time()

Return the time of this event.

Return Value

DateTimeInterface

at line 62
setTime(DateTimeInterface|int|float $time = null)

Set the time for this event.

Parameters

DateTimeInterface|int|float $time The time of this event.