Вход Регистрация
Файл: vendor/laravel/framework/src/Illuminate/Console/View/Components/Choice.php
Строк: 38
<?php

namespace IlluminateConsoleViewComponents;

use 
SymfonyComponentConsoleQuestionChoiceQuestion;

class 
Choice extends Component
{
    
/**
     * Renders the component using the given arguments.
     *
     * @param  string  $question
     * @param  array<array-key, string>  $choices
     * @param  mixed  $default
     * @return mixed
     */
    
public function render($question$choices$default null)
    {
        return 
$this->usingQuestionHelper(
            
fn () => $this->output->askQuestion(
                new 
ChoiceQuestion($question$choices$default)
            ),
        );
    }
}
Онлайн: 1
Реклама