class Secret extends Question

Secret helper.

Properties

protected Input $input Input instance. from Question
protected Output $output Output instance. from Question
static protected bool $hasStty Do we have stty support?

Methods

__construct(Input $input, Output $output)

Constructor.

from Question
mixed
ask(string $question, mixed $default = null, bool $fallback = false)

Writes question to output and returns hidden user input.

bool
hasStty()

Do we have stty support?

Details

in Question at line 42
__construct(Input $input, Output $output)

Constructor.

Parameters

Input $input Input instance
Output $output Output instance

at line 56
mixed ask(string $question, mixed $default = null, bool $fallback = false)

Writes question to output and returns hidden user input.

Parameters

string $question Question to ask
mixed $default Default if no input is entered
bool $fallback Fall back to non-hidden input?

Return Value

mixed

Exceptions

RuntimeException

at line 35
protected bool hasStty()

Do we have stty support?

Return Value

bool