src/main/php/Console.php
public function prompt(string $message, ParamErrors $paramErrors = null): ValueReader
    {
        $this->out->write($message);
        return $this->readValue($paramErrors);
    }
public function prompt(string $message, ParamErrors $paramErrors = null): ValueReader
    {
        $this->out->write($message);
        return $this->readValue($paramErrors);
    }
public function prompt ( string $ message , ParamErrors $ paramErrors = null ) : ValueReader { $ this -> out -> write ( $ message ) ; return $ this -> readValue ( $ paramErrors ) ; }
prompt user for entering a value

Echhos given message to stdout and expects the user to enter a value on
stdin. In case you need access to error messages that may happen during
value validation you need to supply <ParamErrors>, errors will be
accumulated therein under the param name stdin.

@api
@param   string                              $message      message to show before requesting user input
@param   \stubbles\input\errors\ParamErrors  $paramErrors  collection to add any errors to
@return  \stubbles\input\ValueReader
@since   2.1.0
prompt user for entering a value