public function prompt($question, $default = null, $marker = ': ')
    {
        if (isset($default) && strpos($question, '[') === false) {
            $question .= ' [default: ' . $default . ']';
        }

        $this->out($question . $marker);

        $input = $this->in();

        if ($input === '') {
            return $default;
        }

        return $input;
    }
public function prompt($question, $default = null, $marker = ': ')
    {
        if (isset($default) && strpos($question, '[') === false) {
            $question .= ' [default: ' . $default . ']';
        }

        $this->out($question . $marker);

        $input = $this->in();

        if ($input === '') {
            return $default;
        }

        return $input;
    }
public function prompt ( $ question , $ default = null , $ marker = ': ' ) { if ( isset ( $ default ) && strpos ( $ question , '[' ) === false ) { $ question .= ' [default: ' . $ default . ']' ; } $ this -> out ( $ question . $ marker ) ; $ input = $ this -> in ( ) ; if ( $ input === '' ) { return $ default ; } return $ input ; }
Displays an input prompt
@param string $question
@param string|null $default
@param string $marker
@return mixed
Displays an input prompt