Wormhole
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.
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.
protected mixed handleCallback(callable|null $callback)
Handle the given optional execution callback.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Foundation/Testing/Wormhole.html