platform/api/laravel/Foundation/Console/ComponentMakeCommand.yaml

131 lines
2.9 KiB
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
name: ComponentMakeCommand
class_comment: null
dependencies:
- name: CreatesMatchingTest
type: class
source: Illuminate\Console\Concerns\CreatesMatchingTest
- name: GeneratorCommand
type: class
source: Illuminate\Console\GeneratorCommand
- name: Inspiring
type: class
source: Illuminate\Foundation\Inspiring
- name: Str
type: class
source: Illuminate\Support\Str
- name: AsCommand
type: class
source: Symfony\Component\Console\Attribute\AsCommand
- name: InputOption
type: class
source: Symfony\Component\Console\Input\InputOption
- name: CreatesMatchingTest
type: class
source: CreatesMatchingTest
properties:
- name: name
visibility: protected
comment: '# * The console command name.
# *
# * @var string'
- name: description
visibility: protected
comment: '# * The console command description.
# *
# * @var string'
- name: type
visibility: protected
comment: '# * The type of class being generated.
# *
# * @var string'
methods:
- name: handle
visibility: public
parameters: []
comment: "# * The console command name.\n# *\n# * @var string\n# */\n# protected\
\ $name = 'make:component';\n# \n# /**\n# * The console command description.\n\
# *\n# * @var string\n# */\n# protected $description = 'Create a new view component\
\ class';\n# \n# /**\n# * The type of class being generated.\n# *\n# * @var string\n\
# */\n# protected $type = 'Component';\n# \n# /**\n# * Execute the console command.\n\
# *\n# * @return void"
- name: writeView
visibility: protected
parameters: []
comment: '# * Write the view for the component.
# *
# * @return void'
- name: buildClass
visibility: protected
parameters:
- name: name
comment: '# * Build the class with the given name.
# *
# * @param string $name
# * @return string'
- name: getView
visibility: protected
parameters: []
comment: '# * Get the view name relative to the components directory.
# *
# * @return string view'
- name: getStub
visibility: protected
parameters: []
comment: '# * Get the stub file for the generator.
# *
# * @return string'
- name: resolveStubPath
visibility: protected
parameters:
- name: stub
comment: '# * Resolve the fully-qualified path to the stub.
# *
# * @param string $stub
# * @return string'
- name: getDefaultNamespace
visibility: protected
parameters:
- name: rootNamespace
comment: '# * Get the default namespace for the class.
# *
# * @param string $rootNamespace
# * @return string'
- name: getOptions
visibility: protected
parameters: []
comment: '# * Get the console command options.
# *
# * @return array'
traits:
- Illuminate\Console\Concerns\CreatesMatchingTest
- Illuminate\Console\GeneratorCommand
- Illuminate\Foundation\Inspiring
- Illuminate\Support\Str
- Symfony\Component\Console\Attribute\AsCommand
- Symfony\Component\Console\Input\InputOption
- CreatesMatchingTest
interfaces: []