AbstractPrompter
class AbstractPrompter implements PrompterInterface (View source)
Prompter class.
Help us show dialog to ask use questions.
Methods
string
ask(string $msg = '', string $default = '')
Show prompt to ask user.
string
in(string $question = null)
Get a value from standard input.
string
__invoke(string $msg = null, string $default = null)
Proxy to ask method.
getIO()
Method to get property Io
Details
at line line 67
__construct(string $question = null, $default = null, IOInterface $io = null)
Constructor.
at line line 96
abstract string
ask(string $msg = '', string $default = '')
Show prompt to ask user.
at line line 107
string
in(string $question = null)
Get a value from standard input.
at line line 131
string
__invoke(string $msg = null, string $default = null)
Proxy to ask method.
at line line 141
IOInterface
getIO()
Method to get property Io
at line line 153
AbstractPrompter
setIO(IOInterface $io)
Method to set property io