149 lines
3.4 KiB
YAML
149 lines
3.4 KiB
YAML
|
name: TableCommand
|
||
|
class_comment: null
|
||
|
dependencies:
|
||
|
- name: ConnectionResolverInterface
|
||
|
type: class
|
||
|
source: Illuminate\Database\ConnectionResolverInterface
|
||
|
- name: Builder
|
||
|
type: class
|
||
|
source: Illuminate\Database\Schema\Builder
|
||
|
- name: Arr
|
||
|
type: class
|
||
|
source: Illuminate\Support\Arr
|
||
|
- name: Number
|
||
|
type: class
|
||
|
source: Illuminate\Support\Number
|
||
|
- name: AsCommand
|
||
|
type: class
|
||
|
source: Symfony\Component\Console\Attribute\AsCommand
|
||
|
properties:
|
||
|
- name: signature
|
||
|
visibility: protected
|
||
|
comment: '# * The name and signature of the console command.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @var string'
|
||
|
- name: description
|
||
|
visibility: protected
|
||
|
comment: '# * The console command description.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @var string'
|
||
|
methods:
|
||
|
- name: handle
|
||
|
visibility: public
|
||
|
parameters:
|
||
|
- name: connections
|
||
|
comment: "# * The name and signature of the console command.\n# *\n# * @var string\n\
|
||
|
# */\n# protected $signature = 'db:table\n# {table? : The name of the table}\n\
|
||
|
# {--database= : The database connection}\n# {--json : Output the table information\
|
||
|
\ as JSON}';\n# \n# /**\n# * The console command description.\n# *\n# * @var string\n\
|
||
|
# */\n# protected $description = 'Display information about the given database\
|
||
|
\ table';\n# \n# /**\n# * Execute the console command.\n# *\n# * @return int"
|
||
|
- name: columns
|
||
|
visibility: protected
|
||
|
parameters:
|
||
|
- name: schema
|
||
|
- name: table
|
||
|
comment: '# * Get the information regarding the table''s columns.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param \Illuminate\Database\Schema\Builder $schema
|
||
|
|
||
|
# * @param string $table
|
||
|
|
||
|
# * @return \Illuminate\Support\Collection'
|
||
|
- name: getAttributesForColumn
|
||
|
visibility: protected
|
||
|
parameters:
|
||
|
- name: column
|
||
|
comment: '# * Get the attributes for a table column.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param array $column
|
||
|
|
||
|
# * @return \Illuminate\Support\Collection'
|
||
|
- name: indexes
|
||
|
visibility: protected
|
||
|
parameters:
|
||
|
- name: schema
|
||
|
- name: table
|
||
|
comment: '# * Get the information regarding the table''s indexes.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param \Illuminate\Database\Schema\Builder $schema
|
||
|
|
||
|
# * @param string $table
|
||
|
|
||
|
# * @return \Illuminate\Support\Collection'
|
||
|
- name: getAttributesForIndex
|
||
|
visibility: protected
|
||
|
parameters:
|
||
|
- name: index
|
||
|
comment: '# * Get the attributes for a table index.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param array $index
|
||
|
|
||
|
# * @return \Illuminate\Support\Collection'
|
||
|
- name: foreignKeys
|
||
|
visibility: protected
|
||
|
parameters:
|
||
|
- name: schema
|
||
|
- name: table
|
||
|
comment: '# * Get the information regarding the table''s foreign keys.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param \Illuminate\Database\Schema\Builder $schema
|
||
|
|
||
|
# * @param string $table
|
||
|
|
||
|
# * @return \Illuminate\Support\Collection'
|
||
|
- name: display
|
||
|
visibility: protected
|
||
|
parameters:
|
||
|
- name: data
|
||
|
comment: '# * Render the table information.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param array $data
|
||
|
|
||
|
# * @return void'
|
||
|
- name: displayJson
|
||
|
visibility: protected
|
||
|
parameters:
|
||
|
- name: data
|
||
|
comment: '# * Render the table information as JSON.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param array $data
|
||
|
|
||
|
# * @return void'
|
||
|
- name: displayForCli
|
||
|
visibility: protected
|
||
|
parameters:
|
||
|
- name: data
|
||
|
comment: '# * Render the table information formatted for the CLI.
|
||
|
|
||
|
# *
|
||
|
|
||
|
# * @param array $data
|
||
|
|
||
|
# * @return void'
|
||
|
traits:
|
||
|
- Illuminate\Database\ConnectionResolverInterface
|
||
|
- Illuminate\Database\Schema\Builder
|
||
|
- Illuminate\Support\Arr
|
||
|
- Illuminate\Support\Number
|
||
|
- Symfony\Component\Console\Attribute\AsCommand
|
||
|
interfaces: []
|