Wormhole
class Wormhole (View source)
Properties
int | $value | The amount of time to travel. |
Methods
Create a new wormhole instance.
Travel forward the given number of microseconds.
Travel forward the given number of microseconds.
Travel forward the given number of milliseconds.
Travel forward the given number of milliseconds.
Travel forward the given number of seconds.
Travel forward the given number of seconds.
Travel forward the given number of minutes.
Travel forward the given number of minutes.
Travel forward the given number of hours.
Travel forward the given number of hours.
Travel forward the given number of days.
Travel forward the given number of days.
Travel forward the given number of weeks.
Travel forward the given number of weeks.
Travel forward the given number of months.
Travel forward the given number of months.
Travel forward the given number of years.
Travel forward the given number of years.
Travel back to the current time.
Handle the given optional execution callback.
Details
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.
static DateTimeInterface
back()
Travel back to the current time.
protected mixed
handleCallback(callable|null $callback)
Handle the given optional execution callback.