AskWithCompletion
class AskWithCompletion extends Component (View source)
Свойства
| protected OutputStyle | $output | Реализация стиля вывода. | from Component |
| protected | $mutators | Список мутаторов, которые нужно применить к данным представления. | from Component |
Методы
| void | __construct(OutputStyle $output)
Создает новый экземпляр компонента. | from Component |
| void | renderView(string $view, Arrayable|array $data, int $verbosity)
Отображает заданное представление. | from Component |
| void | compile(string $view, array $data)
Компилирует содержимое заданного представления. | from Component |
| array<int,string>|string | mutate(array<int,string>|string $data, $mutators)
Преобразует заданные данные с помощью заданного набора мутаторов. | from Component |
| mixed | usingQuestionHelper(callable $callable)
Выполняет вопрос, используя помощника по вопросам компонента. | from Component |
| mixed | render(string $question, array|callable $choices, string $default = null)
Отображает компонент с использованием указанных аргументов. |
Подробности
void __construct(OutputStyle $output)
Создает новый экземпляр компонента.
protected void renderView(string $view, Arrayable|array $data, int $verbosity)
Отображает заданное представление.
protected void compile(string $view, array $data)
Компилирует содержимое заданного представления.
protected array<int,string>|string mutate(array<int,string>|string $data, $mutators)
Преобразует заданные данные с помощью заданного набора мутаторов.
protected mixed usingQuestionHelper(callable $callable)
Выполняет вопрос, используя помощника по вопросам компонента.
mixed render(string $question, array|callable $choices, string $default = null)
Отображает компонент с использованием указанных аргументов.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/9.x/Illuminate/Console/View/Components/AskWithCompletion.html