protected function promptOptions(array $choices, $default): self
    {
        $options = '';

        foreach ($choices as $choice) {
            $style    = \in_array($choice, (array) $default) ? 'boldCyan' : 'cyan';
            $options .= "/<$style>$choice</end>";
        }

        $options = \ltrim($options, '/');

        $this->writer->colors(" ($options): ");

        return $this;
    }
protected function promptOptions(array $choices, $default): self
    {
        $options = '';

        foreach ($choices as $choice) {
            $style    = \in_array($choice, (array) $default) ? 'boldCyan' : 'cyan';
            $options .= "/<$style>$choice</end>";
        }

        $options = \ltrim($options, '/');

        $this->writer->colors(" ($options): ");

        return $this;
    }
protected function promptOptions ( array $ choices , $ default ) : self { $ options = '' ; foreach ( $ choices as $ choice ) { $ style = \ in_array ( $ choice , ( array ) $ default ) ? 'boldCyan' : 'cyan' ; $ options .= "/<$style>$choice</end>" ; } $ options = \ ltrim ( $ options , '/' ) ; $ this -> writer -> colors ( " ($options): " ) ; return $ this ; }
Show prompt with possible options.

@param array $choices
@param mixed $default

@return self
Show prompt with possible options .