You are here

public function Question::setNormalizer in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Question/Question.php \Symfony\Component\Console\Question\Question::setNormalizer()

Sets a normalizer for the response.

The normalizer can be a callable (a string), a closure or a class implementing __invoke.

Parameters

callable $normalizer:

Return value

Question The current instance

1 call to Question::setNormalizer()
ConfirmationQuestion::__construct in vendor/symfony/console/Question/ConfirmationQuestion.php
Constructor.

File

vendor/symfony/console/Question/Question.php, line 224

Class

Question
Represents a Question.

Namespace

Symfony\Component\Console\Question

Code

public function setNormalizer($normalizer) {
  $this->normalizer = $normalizer;
  return $this;
}