Task
class Task extends Component
Traits
Properties
| protected array<int, callable(string): string> | $mutators | The list of mutators to apply on the view data. |
from Component |
Methods
Mutate the given data with the given set of mutators.
Perform 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.
Given a start time, format the total run time for human readability.
Render the component using the given arguments.
Details
in
Component at line 28
__construct(OutputInterface $output)
Create a new component instance.
in
Component at line 36
protected void
renderView(string $view, array $data, int $verbosity)
Render the given view.
in
Component at line 46
protected string
compile(string $view, array $data)
Compile the given view contents.
in
Component at line 66
protected array|string
mutate(array|string $data, array $mutators)
Mutate the given data with the given set of mutators.
in
Component at line 86
protected mixed
usingQuestionHelper(callable $callable)
Perform a question using the component's question helper.
in
InteractsWithTime at line 17
protected int
secondsUntil(DateInterval|DateTimeInterface|int $delay)
Get the number of seconds until the given DateTime.
in
InteractsWithTime at line 29
protected int
availableAt(DateInterval|DateTimeInterface|int|null $delay = 0)
Get the "available at" UNIX timestamp.
in
InteractsWithTime at line 41
protected DateTimeInterface|int
parseDateInterval(DateInterval|DateTimeInterface|int|null $delay)
If the given value is an interval, convert it to a DateTime instance.
in
InteractsWithTime at line 57
protected int
currentTime()
Get the current system time as a UNIX timestamp.
in
InteractsWithTime at line 65
protected string
runTimeForHumans(float $startTime, float|null $endTime = null)
Given a start time, format the total run time for human readability.
at line 23
void
render(string $description, callable|null $task = null, int $verbosity = OutputInterface::VERBOSITY_NORMAL)
Render the component using the given arguments.