Zend\Console\Prompt\Number
Synopsis
class Number
extends Line
{
- // members
- protected string $promptText;
- protected bool $allowFloat;
- protected int $min;
- protected int $max;
- // Inherited members from Line
- 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()
- public void setMax()
- public int getMax()
- public void setMin()
- public int getMin()
- public void setAllowFloat()
- public bool getAllowFloat()
- // Inherited methods from Line
- 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
Extends
Members
protected
- $allowEmpty — Zend\Console\Prompt\bool
- $allowFloat — Zend\Console\Prompt\bool
- $console — Zend\Console\Adapter\AdapterInterface
- $lastResponse — mixed
- $max — int
- $maxLength — int
- $min — int
- $promptText — string
- $promptText — string
Methods
public
- __construct() — Ask the user for a number.
- getAllowEmpty()
- getAllowFloat()
- getMax()
- getMaxLength()
- getMin()
- getPromptText()
- setAllowEmpty()
- setAllowFloat()
- setMax()
- setMaxLength()
- setMin()
- setPromptText()
- show() — Show the prompt to user and return the answer.
Inherited from Zend\Console\Prompt\Line
public
- 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.