1 | <?php |
||
10 | class ConsoleStyle extends SymfonyStyle |
||
11 | { |
||
12 | /** |
||
13 | * @var InputInterface |
||
14 | */ |
||
15 | protected $input; |
||
16 | |||
17 | /** |
||
18 | * @var OutputInterface |
||
19 | */ |
||
20 | protected $output; |
||
21 | |||
22 | public function __construct(InputInterface $input, OutputInterface $output) |
||
31 | |||
32 | public function getInput(): InputInterface |
||
36 | |||
37 | public function getOutput(): OutputInterface |
||
41 | |||
42 | /** |
||
43 | * Asks the same question multiple times returning the answers as an array. |
||
44 | * |
||
45 | * @param string $question |
||
46 | * @param callable $validator |
||
47 | * @return array |
||
48 | */ |
||
49 | public function askMultiple(string $question, callable $validator = null): array |
||
60 | } |
||
61 |