public function askConfirmation($question, bool $default = true): bool
    {
        $question = new ConfirmationQuestion($this->combineQuestion($question), $default);

        return $this->getQuestionHelper()->ask($this->input, $this->output, $question);
    }
public function askConfirmation($question, bool $default = true): bool
    {
        $question = new ConfirmationQuestion($this->combineQuestion($question), $default);

        return $this->getQuestionHelper()->ask($this->input, $this->output, $question);
    }
public function askConfirmation ( $ question , bool $ default = true ) : bool { $ question = new ConfirmationQuestion ( $ this -> combineQuestion ( $ question ) , $ default ) ; return $ this -> getQuestionHelper ( ) -> ask ( $ this -> input , $ this -> output , $ question ) ; }
Asks a confirmation to the user.

The question will be asked until the user answers by nothing, yes, or no.

@param string|array $question The question to ask. If an array each array item is turned into one line of a multi-line question
@param boolean $default The default answer if the user enters nothing
@return boolean true if the user has confirmed, false otherwise
Asks a confirmation to the user .