Component
abstract class Component
Properties
| protected array<int, callable(string): string> | $mutators | The list of mutators to apply on the view data. |
Methods
__construct(OutputInterface $output)
Create a new component instance.
void
renderView(string $view, array $data, int $verbosity)
Render the given view.
string
compile(string $view, array $data)
Compile the given view contents.
array|string
mutate(array|string $data, array $mutators)
Mutate the given data with the given set of mutators.
mixed
usingQuestionHelper(callable $callable)
Perform a question using the component's question helper.
Details
at line 28
__construct(OutputInterface $output)
Create a new component instance.
at line 36
protected void
renderView(string $view, array $data, int $verbosity)
Render the given view.
at line 46
protected string
compile(string $view, array $data)
Compile the given view contents.
at line 66
protected array|string
mutate(array|string $data, array $mutators)
Mutate the given data with the given set of mutators.
at line 86
protected mixed
usingQuestionHelper(callable $callable)
Perform a question using the component's question helper.