| Total Complexity | 2 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | abstract class BaseQuestion |
||
| 10 | { |
||
| 11 | /** @var QuestionHelper */ |
||
| 12 | protected $helper; |
||
| 13 | |||
| 14 | /** @var InputInterface */ |
||
| 15 | protected $input; |
||
| 16 | |||
| 17 | /** @var OutputInterface */ |
||
| 18 | protected $output; |
||
| 19 | |||
| 20 | /** @var string */ |
||
| 21 | protected $question; |
||
| 22 | |||
| 23 | /** @var string|null */ |
||
| 24 | protected $default; |
||
| 25 | |||
| 26 | /** @var string|null */ |
||
| 27 | protected $helpText; |
||
| 28 | |||
| 29 | public function __construct(QuestionHelper $helper, InputInterface $input, OutputInterface $output, string $question) |
||
| 35 | } |
||
| 36 | |||
| 37 | protected function spacer(): void |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $default |
||
| 44 | * @return mixed |
||
| 45 | */ |
||
| 46 | abstract public function setDefault(string $default); |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param string $helpText |
||
| 50 | * @return mixed |
||
| 51 | */ |
||
| 52 | abstract public function setHelpText(string $helpText); |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return mixed |
||
| 56 | */ |
||
| 57 | abstract public function ask(); |
||
| 58 | } |
||
| 59 |