ConfirmationQuestion

ConfirmationQuestion

class ConfirmationQuestion extends Question

Represents a yes/no question.

Methods

__construct(string $question, mixed $default = true, string $trueAnswerRegex = '/^y/i')

Constructor.

string getQuestion()

Returns the question.

from Question
mixed getDefault()

Returns the default answer.

from 登录查看完整内容