ChoiceQuestion

ChoiceQuestion

class ChoiceQuestion extends Question

Represents a choice question.

Methods

__construct(string $question, array $choices, mixed $default = null)

Constructor.

string getQuestion()

Returns the question.

from Question
mixed getDefault()

Returns the default answer.

from 登录查看完整内容