platform/api/laravel/Foundation/Console/ConsoleMakeCommand.yaml
2024-09-02 10:44:11 -07:00

103 lines
2.5 KiB
YAML

name: ConsoleMakeCommand
class_comment: null
dependencies:
- name: CreatesMatchingTest
type: class
source: Illuminate\Console\Concerns\CreatesMatchingTest
- name: GeneratorCommand
type: class
source: Illuminate\Console\GeneratorCommand
- name: Str
type: class
source: Illuminate\Support\Str
- name: AsCommand
type: class
source: Symfony\Component\Console\Attribute\AsCommand
- name: InputArgument
type: class
source: Symfony\Component\Console\Input\InputArgument
- 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: replaceClass
visibility: protected
parameters:
- name: stub
- name: name
comment: "# * The console command name.\n# *\n# * @var string\n# */\n# protected\
\ $name = 'make:command';\n# \n# /**\n# * The console command description.\n#\
\ *\n# * @var string\n# */\n# protected $description = 'Create a new Artisan command';\n\
# \n# /**\n# * The type of class being generated.\n# *\n# * @var string\n# */\n\
# protected $type = 'Console command';\n# \n# /**\n# * Replace the class name\
\ for the given stub.\n# *\n# * @param string $stub\n# * @param string $name\n\
# * @return string"
- name: getStub
visibility: protected
parameters: []
comment: '# * Get the stub file for the generator.
# *
# * @return string'
- name: getDefaultNamespace
visibility: protected
parameters:
- name: rootNamespace
comment: '# * Get the default namespace for the class.
# *
# * @param string $rootNamespace
# * @return string'
- name: getArguments
visibility: protected
parameters: []
comment: '# * Get the console command arguments.
# *
# * @return array'
- name: getOptions
visibility: protected
parameters: []
comment: '# * Get the console command options.
# *
# * @return array'
traits:
- Illuminate\Console\Concerns\CreatesMatchingTest
- Illuminate\Console\GeneratorCommand
- Illuminate\Support\Str
- Symfony\Component\Console\Attribute\AsCommand
- Symfony\Component\Console\Input\InputArgument
- Symfony\Component\Console\Input\InputOption
- CreatesMatchingTest
interfaces: []