1474. Class

1474.1. Zend\Console\Prompt\Line

1474.1.1. Methods

1474.1.1.1. __construct

__construct()

Ask the user for an answer (a line of text)

Parameters:
  • string – The prompt text to display in console
  • bool – Is empty response allowed?
  • int – Maximum response length

1474.1.1.2. show

show()

Show the prompt to user and return the answer.

Return type:mixed

1474.1.1.3. setAllowEmpty

setAllowEmpty()

@param bool $allowEmpty

1474.1.1.4. getAllowEmpty

getAllowEmpty()

@return bool

1474.1.1.5. setMaxLength

setMaxLength()

@param int $maxLength

1474.1.1.6. getMaxLength

getMaxLength()

@return int

1474.1.1.7. setPromptText

setPromptText()

@param string $promptText

1474.1.1.8. getPromptText

getPromptText()

@return string