Zend\Console\Prompt\Confirm
Synopsis
class Confirm
extends Char
{
- // members
- protected string $promptText;
- protected string $allowedChars;
- protected string $yesChar;
- protected string $noChar;
- protected bool $ignoreCase;
- // Inherited members from Char
- protected string $promptText;
- protected bool $allowEmpty;
- protected string $allowedChars;
- protected bool $ignoreCase;
- protected bool $echo;
- // Inherited members from AbstractPrompt
- protected AdapterInterface $console;
- protected mixed $lastResponse;
- // methods
- public void __construct()
- public bool show()
- public void setNoChar()
- public string getNoChar()
- public void setYesChar()
- public string getYesChar()
- // Inherited methods from Char
- public void __construct()
- public string show()
- public void setAllowEmpty()
- public bool getAllowEmpty()
- public void setPromptText()
- public string getPromptText()
- public void setAllowedChars()
- public string getAllowedChars()
- public void setIgnoreCase()
- public bool getIgnoreCase()
- public void setEcho()
- public bool getEcho()
- // 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
- $allowedChars — string
- $allowedChars — string
- $console — Zend\Console\Adapter\AdapterInterface
- $echo — Zend\Console\Prompt\bool
- $ignoreCase — Zend\Console\Prompt\bool
- $ignoreCase — Zend\Console\Prompt\bool
- $lastResponse — mixed
- $noChar — string
- $promptText — string
- $promptText — string
- $yesChar — string
Methods
public
- __construct() — Ask the user for a single key stroke
- getNoChar()
- getYesChar()
- setNoChar()
- setYesChar()
- show() — Show the confirmation message and return result.
Inherited from Zend\Console\Prompt\Char
public
- getAllowEmpty()
- getAllowedChars()
- getEcho()
- getIgnoreCase()
- getPromptText()
- setAllowEmpty()
- setAllowedChars()
- setEcho()
- setIgnoreCase()
- setPromptText()
- show() — Show the prompt to user and return a single char.
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.