platform/api/laravel/Console/View/Components/Choice.yaml

60 lines
1.2 KiB
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
name: Choice
class_comment: null
dependencies:
- name: ChoiceQuestion
type: class
source: Symfony\Component\Console\Question\ChoiceQuestion
properties: []
methods:
- name: render
visibility: public
parameters:
- name: question
- name: choices
- name: default
default: 'null'
- name: attempts
default: 'null'
- name: multiple
default: 'false'
comment: '# * Renders the component using the given arguments.
# *
# * @param string $question
# * @param array<array-key, string> $choices
# * @param mixed $default
# * @param int $attempts
# * @param bool $multiple
# * @return mixed'
- name: getChoiceQuestion
visibility: protected
parameters:
- name: question
- name: choices
- name: default
comment: '# * Get a ChoiceQuestion instance that handles array keys like Prompts.
# *
# * @param string $question
# * @param array $choices
# * @param mixed $default
# * @return \Symfony\Component\Console\Question\ChoiceQuestion'
- name: isAssoc
visibility: protected
parameters:
- name: array
comment: null
traits:
- Symfony\Component\Console\Question\ChoiceQuestion
interfaces: []