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
|
# |
public
|
setAutocompleterValues(?iterable $values): $this
|
# |
public
|
getAutocompleterCallback(): ?callable
|
# |
public
|
setAutocompleterCallback(?callable $callback): $this
|
# |
public
|
setValidator(?callable $validator): $this
|
# |
public
|
getValidator(): ?callable
|
# |
public
|
setMaxAttempts(?int $attempts): $this
|
# |
public
|
getMaxAttempts(): ?int
|
# |
public
|
setNormalizer(callable $normalizer): $this
|
# |
public
|
getNormalizer(): ?callable
|
# |
protected
|
isAssoc(array $array): bool
|
# |
public
|
isTrimmable(): bool
|
# |
public
|
setTrimmable(bool $trimmable): $this
|
# |