Pagekit\Application\Console\Command::secret PHP Метод

secret() публичный Метод

Prompt the user for input but hide the answer from the console.
public secret ( string $question, boolean $fallback = true ) : string
$question string
$fallback boolean
Результат string
    public function secret($question, $fallback = true)
    {
        $helper = $this->getHelperSet()->get('question');
        $question = new Question("<question>{$question}</question>");
        $question->setHidden(true);
        $question->setHiddenFallback($fallback);
        return $helper->ask($this->input, $this->output, $question);
    }