class Wormhole (View source)

Properties

int $value The amount of time to travel.

Methods

void
__construct(int $value)

Create a new wormhole instance.

mixed
milliseconds(callable|null $callback = null)

Travel forward the given number of milliseconds.

mixed
seconds(callable|null $callback = null)

Travel forward the given number of seconds.

mixed
minutes(callable|null $callback = null)

Travel forward the given number of minutes.

mixed
hours(callable|null $callback = null)

Travel forward the given number of hours.

mixed
days(callable|null $callback = null)

Travel forward the given number of days.

mixed
weeks(callable|null $callback = null)

Travel forward the given number of weeks.

mixed
years(callable|null $callback = null)

Travel forward the given number of years.

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 milliseconds(callable|null $callback = null)

Travel forward the given number of milliseconds.

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 minutes(callable|null $callback = null)

Travel forward the given number of minutes.

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 days(callable|null $callback = null)

Travel forward the given number of days.

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 years(callable|null $callback = null)

Travel forward the given number of years.

Parameters

callable|null $callback

Return Value

mixed

protected mixed handleCallback(callable|null $callback)

Handle the given optional execution callback.

Parameters

callable|null $callback

Return Value

mixed