original_string: protected function getUserChoice($listTitle, $selectMessage, $menuItems)
      {
          $menuOptions = new \ezcConsoleMenuDialogOptions(
              array(
                  'text' => $listTitle,
                  'selectText' => $selectMessage,
                  'validator' => new DialogMenuValidator($menuItems)
              )
          );
  
          $menuDialog = new \ezcConsoleMenuDialog($this->output, $menuOptions);
          do {
              $menuDialog->display();
          } while ($menuDialog->hasValidResult() === false);
  
          return $menuDialog->getResult();
      }
code: protected function getUserChoice($listTitle, $selectMessage, $menuItems)
      {
          $menuOptions = new \ezcConsoleMenuDialogOptions(
              array(
                  'text' => $listTitle,
                  'selectText' => $selectMessage,
                  'validator' => new DialogMenuValidator($menuItems)
              )
          );
  
          $menuDialog = new \ezcConsoleMenuDialog($this->output, $menuOptions);
          do {
              $menuDialog->display();
          } while ($menuDialog->hasValidResult() === false);
  
          return $menuDialog->getResult();
      }
code_tokens: protected function getUserChoice ( $ listTitle , $ selectMessage , $ menuItems ) { $ menuOptions = new \ ezcConsoleMenuDialogOptions ( array ( 'text' => $ listTitle , 'selectText' => $ selectMessage , 'validator' => new DialogMenuValidator ( $ menuItems ) ) ) ; $ menuDialog = new \ ezcConsoleMenuDialog ( $ this -> output , $ menuOptions ) ; do { $ menuDialog -> display ( ) ; } while ( $ menuDialog -> hasValidResult ( ) === false ) ; return $ menuDialog -> getResult ( ) ; }
docstring: Display a Dialog menu, and retrieve the user selection
  
  @param  string $listTitle     Title of the menu dialog
  @param  string $selectMessage Select option message
  @param  array  $menuItems     The menu contents
  
  @codeCoverageIgnore
  @since  1.2.0
  @return int The index in the menu that was selected
docstring_tokens: Display a Dialog menu and retrieve the user selection