src/main/php/Console.php
public function readValue(ParamErrors $paramErrors = null): ValueReader
    {
        if (null === $paramErrors) {
            return ValueReader::forValue($this->in->readLine());
        }

        return new ValueReader($paramErrors, 'stdin', Value::of($this->in->readLine()));
    }
public function readValue(ParamErrors $paramErrors = null): ValueReader
    {
        if (null === $paramErrors) {
            return ValueReader::forValue($this->in->readLine());
        }

        return new ValueReader($paramErrors, 'stdin', Value::of($this->in->readLine()));
    }
public function readValue ( ParamErrors $ paramErrors = null ) : ValueReader { if ( null === $ paramErrors ) { return ValueReader :: forValue ( $ this -> in -> readLine ( ) ) ; } return new ValueReader ( $ paramErrors , 'stdin' , Value :: of ( $ this -> in -> readLine ( ) ) ) ; }
reads a value from command line input

Read a value entered on stdin. Returns a <ValueReader> which can be used
to get a typed value. 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   \stubbles\input\errors\ParamErrors  $paramErrors  collection to add any errors to
@return  \stubbles\input\ValueReader
@since   2.1.0
reads a value from command line input