| 1 | <?php |
||
| 10 | abstract class BaseChooser |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var InputInterface |
||
| 14 | */ |
||
| 15 | protected $input; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var OutputInterface |
||
| 19 | */ |
||
| 20 | protected $output; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param InputInterface $input |
||
| 24 | * @param OutputInterface $output |
||
| 25 | */ |
||
| 26 | public function __construct(InputInterface $input, OutputInterface $output) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Asks user question. |
||
| 34 | * |
||
| 35 | * @param string $message |
||
| 36 | * @param string[] $choices |
||
| 37 | * @param string $default |
||
| 38 | * |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | protected function askQuestion($message, $choices, $default) |
||
| 49 | |||
| 50 | abstract public function execute(); |
||
| 51 | } |
||
| 52 |