Represents a Question.
Methods | ||
---|---|---|
public
|
__construct(string $question, string|bool|int|float|null $default = null)
|
# |
public
|
getQuestion(): string
|
# |
public
|
getDefault(): string|bool|int|float|null
|
# |
public
|
isMultiline(): bool
|
# |
public
|
setMultiline(bool $multiline): $this
|
# |
public
|
isHidden(): bool
|
# |
public
|
setHidden(bool $hidden): $this
|
# |
public
|
isHiddenFallback(): bool
|
# |
public
|
setHiddenFallback(bool $fallback): $this
|
# |
public
|
getAutocompleterValues(): iterable|null
|
# |
public
|
setAutocompleterValues(?iterable $values): $this
|
# |
public
|
getAutocompleterCallback(): ?callable
|
# |
public
|
setAutocompleterCallback(callable $callback = null): $this
|
# |
public
|
setValidator(callable $validator = null): $this
|
# |
public
|
getValidator(): callable|null
|
# |
public
|
setMaxAttempts(?int $attempts): $this
|
# |
public
|
getMaxAttempts(): int|null
|
# |
public
|
setNormalizer(callable $normalizer): $this
|
# |
public
|
getNormalizer(): callable|null
|
# |
public
|
isTrimmable(): bool
|
# |
public
|
setTrimmable(bool $trimmable): $this
|
# |