function Question::setNormalizer
Sets a normalizer for the response.
The normalizer can be a callable (a string), a closure or a class implementing __invoke.
Return value
$this
2 calls to Question::setNormalizer()
- ConfirmationQuestion::__construct in vendor/
symfony/ console/ Question/ ConfirmationQuestion.php - StrictConfirmationQuestion::__construct in vendor/
composer/ composer/ src/ Composer/ Question/ StrictConfirmationQuestion.php - Constructor.s
File
-
vendor/
symfony/ console/ Question/ Question.php, line 244
Class
- Question
- Represents a Question.
Namespace
Symfony\Component\Console\QuestionCode
public function setNormalizer(callable $normalizer) : static {
$this->normalizer = $normalizer(...);
return $this;
}