Platformsh\Cli\Command\Project\ProjectGetCommand::offerProjectChoice PHP Метод

offerProjectChoice() защищенный Метод

protected offerProjectChoice ( array $projects, Symfony\Component\Console\Input\InputInterface $input ) : string
$projects array
$input Symfony\Component\Console\Input\InputInterface
Результат string The chosen project ID.
    protected function offerProjectChoice(array $projects, InputInterface $input)
    {
        $projectList = [];
        foreach ($projects as $project) {
            $projectList[$project->id] = $this->api()->getProjectLabel($project, false);
        }
        $text = "Enter a number to choose which project to clone:";
        return $this->getHelper('question')->choose($projectList, $text, $input, $this->stdErr);
    }