class Task extends Component (View source)
| InteractsWithTime |
| protected OutputStyle | $output | The output style implementation. | from Component |
| protected | $mutators | The list of mutators to apply on the view data. | from Component |
| void | __construct(OutputStyle $output)
Creates a new component instance. | from Component |
| void | renderView(string $view, Arrayable|array $data, int $verbosity)
Renders the given view. | from Component |
| void | compile(string $view, array $data)
Compile the given view contents. | from Component |
| array<int,string>|string | mutate(array<int,string>|string $data, $mutators)
Mutates the given data with the given set of mutators. | from Component |
| mixed | usingQuestionHelper(callable $callable)
Eventually performs a question using the component's question helper. | from Component |
| int | secondsUntil(DateTimeInterface|DateInterval|int $delay)
Get the number of seconds until the given DateTime. | from InteractsWithTime |
| int | availableAt(DateTimeInterface|DateInterval|int $delay = 0)
Get the "available at" UNIX timestamp. | from InteractsWithTime |
| DateTimeInterface|int | parseDateInterval(DateTimeInterface|DateInterval|int $delay)
If the given value is an interval, convert it to a DateTime instance. | from InteractsWithTime |
| int | currentTime()
Get the current system time as a UNIX timestamp. | from InteractsWithTime |
| string | runTimeForHumans(float $startTime, float $endTime = null)
Given a start time, format the total run time for human readability. | from InteractsWithTime |
| render($description, $task = null, $verbosity = OutputInterface::VERBOSITY_NORMAL) No description |
Creates a new component instance.
Renders the given view.
Compile the given view contents.
Mutates the given data with the given set of mutators.
Eventually performs a question using the component's question helper.
Get the number of seconds until the given DateTime.
Get the "available at" UNIX timestamp.
If the given value is an interval, convert it to a DateTime instance.
Get the current system time as a UNIX timestamp.
Given a start time, format the total run time for human readability.
No description
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Console/View/Components/Task.html