Conditions | 3 |
Paths | 4 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | protected function build(): Question |
||
39 | { |
||
40 | $question = parent::build(); |
||
41 | $message = $question->getQuestion(); |
||
42 | $validator = $question->getValidator(); |
||
43 | if (!empty($this->default)) { |
||
44 | $message .= ' [' . $this->default . ']: '; |
||
45 | } else { |
||
46 | $message .= ': '; |
||
47 | } |
||
48 | $question = new Question($message, $this->default); |
||
49 | $question->setValidator($validator); |
||
50 | if (!empty($this->autocompleterValues)) { |
||
51 | $question->setAutocompleterValues($this->autocompleterValues); |
||
52 | } |
||
53 | return $question; |
||
54 | } |
||
68 |