Airship\Hangar\Command::prompt PHP Method

prompt() final protected method

Prompt the user for an input value
final protected prompt ( string $text ) : string
$text string
return string
    protected final function prompt($text)
    {
        static $fp = null;
        if ($fp === null) {
            $fp = \fopen('php://stdin', 'r');
        }
        echo $text;
        return Binary::safeSubstr(\fgets($fp), 0, -1);
    }