Пример #1
0
 /**
  * Choise an answer from given options?
  *
  * @param  string $prompt  The question you want to ask for
  * @param  array  $options Available options
  * @return string
  */
 public function radio($prompt, array $options)
 {
     if ($this->hasSttyAvailable()) {
         $radio = $this->climate->radio($prompt, $options);
         return $radio->prompt();
     }
     return '';
 }