@@ 178-185 (lines=8) @@ | ||
175 | /** |
|
176 | * {@inheritDoc} |
|
177 | */ |
|
178 | public function select($question, $choices, $default = null, $attempts = false, $errorMessage = 'Value "%s" is invalid') |
|
179 | { |
|
180 | if ($this->isInteractive()) { |
|
181 | return $this->helperSet->get('dialog')->select($this->output, $question, $choices, $default, $attempts, $errorMessage); |
|
182 | } else { |
|
183 | return $default; |
|
184 | } |
|
185 | } |
|
186 | ||
187 | /** |
|
188 | * {@inheritDoc} |
|
@@ 214-221 (lines=8) @@ | ||
211 | /** |
|
212 | * {@inheritDoc} |
|
213 | */ |
|
214 | public function askAndValidate($question, $validator, $attempts = false, $default = null) |
|
215 | { |
|
216 | if ($this->isInteractive()) { |
|
217 | return $this->helperSet->get('dialog')->askAndValidate($this->output, $question, $validator, $attempts, $default); |
|
218 | } else { |
|
219 | return $default; |
|
220 | } |
|
221 | } |
|
222 | ||
223 | /** |
|
224 | * {@inheritDoc} |