/** * Constructor. * * @param string $question The question you want to ask. * @param $default $default The default value. * @param IOInterface $io The input object. * * @since 2.0 */ function __construct($question = null, $default = null, IOInterface $io = null) { $this->io = $io ?: IOFactory::getIO(); $this->question = $question; $this->default = $default; $this->init(); }