You are here

public function StyleInterface::choice in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Style/StyleInterface.php \Symfony\Component\Console\Style\StyleInterface::choice()

Asks a choice question.

Parameters

string $question:

array $choices:

string|int|null $default:

Return value

string

1 method overrides StyleInterface::choice()
SymfonyStyle::choice in vendor/symfony/console/Style/SymfonyStyle.php
Asks a choice question.

File

vendor/symfony/console/Style/StyleInterface.php, line 132

Class

StyleInterface
Output style helpers.

Namespace

Symfony\Component\Console\Style

Code

public function choice($question, array $choices, $default = null);