Wormhole
Properties
$value int
The amount of time to travel.
Methods
__construct ( $value ) : void
Create a new wormhole instance.
Parameters
- $value int
millisecond ( $callback ) : mixed
Travel forward the given number of milliseconds.
Parameters
- $callback callable|null
milliseconds ( $callback ) : mixed
Travel forward the given number of milliseconds.
Parameters
- $callback callable|null
second ( $callback ) : mixed
Travel forward the given number of seconds.
Parameters
- $callback callable|null
seconds ( $callback ) : mixed
Travel forward the given number of seconds.
Parameters
- $callback callable|null
minute ( $callback ) : mixed
Travel forward the given number of minutes.
Parameters
- $callback callable|null
minutes ( $callback ) : mixed
Travel forward the given number of minutes.
Parameters
- $callback callable|null
hour ( $callback ) : mixed
Travel forward the given number of hours.
Parameters
- $callback callable|null
hours ( $callback ) : mixed
Travel forward the given number of hours.
Parameters
- $callback callable|null
day ( $callback ) : mixed
Travel forward the given number of days.
Parameters
- $callback callable|null
days ( $callback ) : mixed
Travel forward the given number of days.
Parameters
- $callback callable|null
week ( $callback ) : mixed
Travel forward the given number of weeks.
Parameters
- $callback callable|null
weeks ( $callback ) : mixed
Travel forward the given number of weeks.
Parameters
- $callback callable|null
month ( $callback ) : mixed
Travel forward the given number of months.
Parameters
- $callback callable|null
months ( $callback ) : mixed
Travel forward the given number of months.
Parameters
- $callback callable|null
year ( $callback ) : mixed
Travel forward the given number of years.
Parameters
- $callback callable|null
years ( $callback ) : mixed
Travel forward the given number of years.
Parameters
- $callback callable|null
handleCallback ( $callback ) : mixed
Handle the given optional execution callback.
Parameters
- $callback callable|null