private function showProjectRoleForm($defaultRole, InputInterface $input)
    {
        /** @var \Platformsh\Cli\Service\QuestionHelper $questionHelper */
        $questionHelper = $this->getService('question_helper');

        $this->stdErr->writeln("The user's project role can be " . $this->describeRoles(ProjectAccess::$roles) . '.');
        $this->stdErr->writeln('');
        $question = new Question(
            sprintf('Project role (default: %s) <question>%s</question>: ', $defaultRole, $this->describeRoleInput(ProjectAccess::$roles)),
            $defaultRole
        );
        $question->setValidator(function ($answer) {
            return $this->validateProjectRole($answer);
        });
        $question->setMaxAttempts(5);
        $question->setAutocompleterValues(ProjectAccess::$roles);

        return $questionHelper->ask($input, $this->stdErr, $question);
    }
private function showProjectRoleForm($defaultRole, InputInterface $input)
    {
        /** @var \Platformsh\Cli\Service\QuestionHelper $questionHelper */
        $questionHelper = $this->getService('question_helper');

        $this->stdErr->writeln("The user's project role can be " . $this->describeRoles(ProjectAccess::$roles) . '.');
        $this->stdErr->writeln('');
        $question = new Question(
            sprintf('Project role (default: %s) <question>%s</question>: ', $defaultRole, $this->describeRoleInput(ProjectAccess::$roles)),
            $defaultRole
        );
        $question->setValidator(function ($answer) {
            return $this->validateProjectRole($answer);
        });
        $question->setMaxAttempts(5);
        $question->setAutocompleterValues(ProjectAccess::$roles);

        return $questionHelper->ask($input, $this->stdErr, $question);
    }
private function showProjectRoleForm ( $ defaultRole , InputInterface $ input ) { /** @var \Platformsh\Cli\Service\QuestionHelper $questionHelper */ $ questionHelper = $ this -> getService ( 'question_helper' ) ; $ this -> stdErr -> writeln ( "The user's project role can be " . $ this -> describeRoles ( ProjectAccess :: $ roles ) . '.' ) ; $ this -> stdErr -> writeln ( '' ) ; $ question = new Question ( sprintf ( 'Project role (default: %s) <question>%s</question>: ' , $ defaultRole , $ this -> describeRoleInput ( ProjectAccess :: $ roles ) ) , $ defaultRole ) ; $ question -> setValidator ( function ( $ answer ) { return $ this -> validateProjectRole ( $ answer ) ; } ) ; $ question -> setMaxAttempts ( 5 ) ; $ question -> setAutocompleterValues ( ProjectAccess :: $ roles ) ; return $ questionHelper -> ask ( $ input , $ this -> stdErr , $ question ) ; }
Show the form for entering the project role.

@param string                                          $defaultRole
@param \Symfony\Component\Console\Input\InputInterface $input

@return string
Show the form for entering the project role .