class Wormhole (View source)

Properties

int $value

The amount of time to travel.

Methods

void
__construct(int $value)

Create a new wormhole instance.

mixed
microsecond(callable|null $callback = null)

Travel forward the given number of microseconds.

mixed
microseconds(callable|null $callback = null)

Travel forward the given number of microseconds.

mixed
millisecond(callable|null $callback = null)

Travel forward the given number of milliseconds.

mixed
milliseconds(callable|null $callback = null)

Travel forward the given number of milliseconds.

mixed
second(callable|null $callback = null)

Travel forward the given number of seconds.

mixed
seconds(callable|null $callback = null)

Travel forward the given number of seconds.

mixed
minute(callable|null $callback = null)

Travel forward the given number of minutes.

mixed
minutes(callable|null $callback = null)

Travel forward the given number of minutes.

mixed
hour(callable|null $callback = null)

Travel forward the given number of hours.

mixed
hours(callable|null $callback = null)

Travel forward the given number of hours.

mixed
day(callable|null $callback = null)

Travel forward the given number of days.

mixed
days(callable|null $callback = null)

Travel forward the given number of days.

mixed
week(callable|null $callback = null)

Travel forward the given number of weeks.

mixed
weeks(callable|null $callback = null)

Travel forward the given number of weeks.

mixed
month(callable|null $callback = null)

Travel forward the given number of months.

mixed
months(callable|null $callback = null)

Travel forward the given number of months.

mixed
year(callable|null $callback = null)

Travel forward the given number of years.

mixed
years(callable|null $callback = null)

Travel forward the given number of years.

back()

Travel back to the current time.

mixed
handleCallback(callable|null $callback)

Handle the given optional execution callback.

Details

void __construct(int $value)

Create a new wormhole instance.

Parameters

int $value

Return Value

void

mixed microsecond(callable|null $callback = null)

Travel forward the given number of microseconds.

Parameters

callable|null $callback

Return Value

mixed

mixed microseconds(callable|null $callback = null)

Travel forward the given number of microseconds.

Parameters

callable|null $callback

Return Value

mixed

mixed millisecond(callable|null $callback = null)

Travel forward the given number of milliseconds.

Parameters

callable|null $callback

Return Value

mixed

mixed milliseconds(callable|null $callback = null)

Travel forward the given number of milliseconds.

Parameters

callable|null $callback

Return Value

mixed

mixed second(callable|null $callback = null)

Travel forward the given number of seconds.

Parameters

callable|null $callback

Return Value

mixed

mixed seconds(callable|null $callback = null)

Travel forward the given number of seconds.

Parameters

callable|null $callback

Return Value

mixed

mixed minute(callable|null $callback = null)

Travel forward the given number of minutes.

Parameters

callable|null $callback

Return Value

mixed

mixed minutes(callable|null $callback = null)

Travel forward the given number of minutes.

Parameters

callable|null $callback

Return Value

mixed

mixed hour(callable|null $callback = null)

Travel forward the given number of hours.

Parameters

callable|null $callback

Return Value

mixed

mixed hours(callable|null $callback = null)

Travel forward the given number of hours.

Parameters

callable|null $callback

Return Value

mixed

mixed day(callable|null $callback = null)

Travel forward the given number of days.

Parameters

callable|null $callback

Return Value

mixed

mixed days(callable|null $callback = null)

Travel forward the given number of days.

Parameters

callable|null $callback

Return Value

mixed

mixed week(callable|null $callback = null)

Travel forward the given number of weeks.

Parameters

callable|null $callback

Return Value

mixed

mixed weeks(callable|null $callback = null)

Travel forward the given number of weeks.

Parameters

callable|null $callback

Return Value

mixed

mixed month(callable|null $callback = null)

Travel forward the given number of months.

Parameters

callable|null $callback

Return Value

mixed

mixed months(callable|null $callback = null)

Travel forward the given number of months.

Parameters

callable|null $callback

Return Value

mixed

mixed year(callable|null $callback = null)

Travel forward the given number of years.

Parameters

callable|null $callback

Return Value

mixed

mixed years(callable|null $callback = null)

Travel forward the given number of years.

Parameters

callable|null $callback

Return Value

mixed

static DateTimeInterface back()

Travel back to the current time.

Return Value

DateTimeInterface

protected mixed handleCallback(callable|null $callback)

Handle the given optional execution callback.

Parameters

callable|null $callback

Return Value

mixed