private function getQuestion($question, $default = null, callable $validator = null, array $values = null)
    {
        $question = new Question(
            sprintf('<info>%s</info>%s: ', $question, $default ? sprintf(' [<comment>%s</comment>]', $default) : ''),
            $default
        );

        $question
            ->setValidator($validator)
            ->setAutocompleterValues($values);

        return $question;
    }
private function getQuestion($question, $default = null, callable $validator = null, array $values = null)
    {
        $question = new Question(
            sprintf('<info>%s</info>%s: ', $question, $default ? sprintf(' [<comment>%s</comment>]', $default) : ''),
            $default
        );

        $question
            ->setValidator($validator)
            ->setAutocompleterValues($values);

        return $question;
    }
private function getQuestion ( $ question , $ default = null , callable $ validator = null , array $ values = null ) { $ question = new Question ( sprintf ( '<info>%s</info>%s: ' , $ question , $ default ? sprintf ( ' [<comment>%s</comment>]' , $ default ) : '' ) , $ default ) ; $ question -> setValidator ( $ validator ) -> setAutocompleterValues ( $ values ) ; return $ question ; }
Returns formatted question

@param string        $question
@param mixed         $default
@param callable|null $validator
@param array|null    $values

@return Question
Returns formatted question