Wormhole
class Wormhole
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
at line 21
__construct(int $value)
Create a new wormhole instance.
at line 32
mixed
microsecond(null|callable $callback = null)
Travel forward the given number of microseconds.
at line 43
mixed
microseconds(null|callable $callback = null)
Travel forward the given number of microseconds.
at line 56
mixed
millisecond(null|callable $callback = null)
Travel forward the given number of milliseconds.
at line 67
mixed
milliseconds(null|callable $callback = null)
Travel forward the given number of milliseconds.
at line 80
mixed
second(null|callable $callback = null)
Travel forward the given number of seconds.
at line 91
mixed
seconds(null|callable $callback = null)
Travel forward the given number of seconds.
at line 104
mixed
minute(null|callable $callback = null)
Travel forward the given number of minutes.
at line 115
mixed
minutes(null|callable $callback = null)
Travel forward the given number of minutes.
at line 128
mixed
hour(null|callable $callback = null)
Travel forward the given number of hours.
at line 139
mixed
hours(null|callable $callback = null)
Travel forward the given number of hours.
at line 152
mixed
day(null|callable $callback = null)
Travel forward the given number of days.
at line 163
mixed
days(null|callable $callback = null)
Travel forward the given number of days.
at line 176
mixed
week(null|callable $callback = null)
Travel forward the given number of weeks.
at line 187
mixed
weeks(null|callable $callback = null)
Travel forward the given number of weeks.
at line 200
mixed
month(null|callable $callback = null)
Travel forward the given number of months.
at line 211
mixed
months(null|callable $callback = null)
Travel forward the given number of months.
at line 224
mixed
year(null|callable $callback = null)
Travel forward the given number of years.
at line 235
mixed
years(null|callable $callback = null)
Travel forward the given number of years.
at line 245
static CarbonInterface
back()
Travel back to the current time.
at line 258
protected mixed
handleCallback(null|callable $callback)
Handle the given optional execution callback.