[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/symfony/console/Question/ -> Question.php (summary)

(no description)

File Size: 245 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Question:: (16 methods):
  __construct()
  getQuestion()
  getDefault()
  isHidden()
  setHidden()
  isHiddenFallback()
  setHiddenFallback()
  getAutocompleterValues()
  setAutocompleterValues()
  setValidator()
  getValidator()
  setMaxAttempts()
  getMaxAttempts()
  setNormalizer()
  getNormalizer()
  isAssoc()


Class: Question  - X-Ref

Represents a Question.

__construct($question, $default = null)   X-Ref

param: string $question The question to ask to the user
param: mixed  $default  The default answer to return if the user enters nothing

getQuestion()   X-Ref
Returns the question.

return: string

getDefault()   X-Ref
Returns the default answer.

return: mixed

isHidden()   X-Ref
Returns whether the user response must be hidden.

return: bool

setHidden($hidden)   X-Ref
Sets whether the user response must be hidden or not.

param: bool $hidden
return: $this

isHiddenFallback()   X-Ref
In case the response can not be hidden, whether to fallback on non-hidden question or not.

return: bool

setHiddenFallback($fallback)   X-Ref
Sets whether to fallback on non-hidden question if the response can not be hidden.

param: bool $fallback
return: $this

getAutocompleterValues()   X-Ref
Gets values for the autocompleter.

return: iterable|null

setAutocompleterValues($values)   X-Ref
Sets values for the autocompleter.

param: iterable|null $values
return: $this

setValidator(callable $validator = null)   X-Ref
Sets a validator for the question.

return: $this

getValidator()   X-Ref
Gets the validator for the question.

return: callable|null

setMaxAttempts($attempts)   X-Ref
Sets the maximum number of attempts.

Null means an unlimited number of attempts.

param: int|null $attempts
return: $this

getMaxAttempts()   X-Ref
Gets the maximum number of attempts.

Null means an unlimited number of attempts.

return: int|null

setNormalizer(callable $normalizer)   X-Ref
Sets a normalizer for the response.

The normalizer can be a callable (a string), a closure or a class implementing __invoke.

return: $this

getNormalizer()   X-Ref
Gets the normalizer for the response.

The normalizer can ba a callable (a string), a closure or a class implementing __invoke.

return: callable|null

isAssoc($array)   X-Ref
No description



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1