Zend\Console\Prompt\Line
Synopsis
class Line
extends AbstractPrompt
{
- // members
- protected string $promptText;
- protected bool $allowEmpty;
- protected integer $maxLength;
- // Inherited members from AbstractPrompt
- protected AdapterInterface $console;
- protected mixed $lastResponse;
- // methods
- public void __construct()
- public mixed show()
- public void setAllowEmpty()
- public bool getAllowEmpty()
- public void setMaxLength()
- public int getMaxLength()
- public void setPromptText()
- public string getPromptText()
- // Inherited methods from AbstractPrompt
- public mixed getLastResponse()
- public AdapterInterface getConsole()
- public void setConsole()
- public static mixed prompt()
Hierarchy
Members
protected
- $allowEmpty — Zend\Console\Prompt\bool
- $console — Zend\Console\Adapter\AdapterInterface
- $lastResponse — mixed
- $maxLength — int
- $promptText — string
Methods
public
- __construct() — Ask the user for an answer (a line of text)
- getAllowEmpty()
- getMaxLength()
- getPromptText()
- setAllowEmpty()
- setMaxLength()
- setPromptText()
- show() — Show the prompt to user and return the answer.
Inherited from Zend\Console\Prompt\AbstractPrompt
public
- getConsole() — Return console adapter to use when showing prompt.
- getLastResponse() — Return last answer to this prompt.
- prompt() — Create an instance of this prompt, show it and return response.
- setConsole() — Set console adapter to use when showing prompt.