| 1 | <?php |
||
| 20 | class QuestionHelper extends BaseDialogHelper |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Build text for asking a question. For example: |
||
| 24 | * |
||
| 25 | * "Do you want to continue [yes]:" |
||
| 26 | * |
||
| 27 | * @param string $question The question you want to ask |
||
| 28 | * @param mixed $default Default value to add to message, if false no default will be shown |
||
| 29 | * @param string $sep Separation char for between message and user input |
||
| 30 | * |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | public function getQuestion($question, $default = null, $sep = ':') |
||
| 39 | } |
||
| 40 |