Message
class Message extends Component
Properties
| protected array<int, callable(string): string> | $mutators | The list of mutators to apply on the view data. |
from Component |
Methods
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.
from
Component
mixed
usingQuestionHelper(callable $callable)
Perform a question using the component's question helper.
from
Component
void
render(string $message, int $verbosity = OutputInterface::VERBOSITY_NORMAL)
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.
at line 25
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.
at line 15
void
render(string $message, int $verbosity = OutputInterface::VERBOSITY_NORMAL)
Render the component using the given arguments.