interface PrompterInterface (View source)

Prompter Interface.

Help us show dialog to ask use questions.

Methods

string
ask(string $msg = '', string $default = '')

Show prompt to ask user.

string
__invoke(string $default = '')

Proxy to ask method.

Details

at line line 30
string ask(string $msg = '', string $default = '')

Show prompt to ask user.

Parameters

string $msg Question.
string $default Default value.

Return Value

string The value that use input.

at line line 41
string __invoke(string $default = '')

Proxy to ask method.

Parameters

string $default Default value.

Return Value

string The value that use input.