PHP Класс Xethron\MigrationsGenerator\MigrateGenerateCommand

Наследование: extends Way\Generators\Commands\GeneratorCommand
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$batch integer
$compiler Way\Generators\Compilers\TemplateCompiler
$config Illuminate\Config\Repository
$connection string | null
$datePrefix string Filename date prefix (Y_m_d_His)
$description string The console command description.
$fields array Array of Fields to create in a new Migration Namely: Columns, Indexes and Foreign Keys
$file Way\Generators\Filesystem\Filesystem
$log boolean
$method string
$migrationName string
$migrations array List of Migrations that has been done
$name string The console command name.
$repository Illuminate\Database\Migrations\MigrationRepositoryInterface
$schemaGenerator Xethron\MigrationsGenerator\Generators\SchemaGenerator
$table string

Открытые методы

Метод Описание
__construct ( Way\Generators\Generator $generator, Way\Generators\Filesystem\Filesystem $file, Way\Generators\Compilers\TemplateCompiler $compiler, Illuminate\Database\Migrations\MigrationRepositoryInterface $repository, Illuminate\Config\Repository $config )
fire ( ) : void Execute the console command.

Защищенные методы

Метод Описание
askNumeric ( string $question, integer | float $default = null ) : integer | float Ask user for a Numeric Value, or blank for default
askYn ( string $question ) : boolean Ask for user input: Yes/No
generate ( string $method, array $tables ) : void Generate Migrations
getArguments ( ) : array Get the console command arguments.
getDatePrefix ( ) : string Get the date prefix for the migration.
getExcludedTables ( ) : array Get a list of tables to exclude
getFileGenerationPath ( ) : string The path where the file will be created
getOptions ( ) : array Get the console command options.
getTemplateData ( ) : array Fetch the template data
getTemplatePath ( ) : string Get path to template for generator
removeExcludedTables ( $tables ) : array Remove all the tables to exclude from the array of tables

Описание методов

__construct() публичный Метод

public __construct ( Way\Generators\Generator $generator, Way\Generators\Filesystem\Filesystem $file, Way\Generators\Compilers\TemplateCompiler $compiler, Illuminate\Database\Migrations\MigrationRepositoryInterface $repository, Illuminate\Config\Repository $config )
$generator Way\Generators\Generator
$file Way\Generators\Filesystem\Filesystem
$compiler Way\Generators\Compilers\TemplateCompiler
$repository Illuminate\Database\Migrations\MigrationRepositoryInterface
$config Illuminate\Config\Repository

askNumeric() защищенный Метод

Ask user for a Numeric Value, or blank for default
protected askNumeric ( string $question, integer | float $default = null ) : integer | float
$question string Question to ask
$default integer | float Default Value (optional)
Результат integer | float Answer

askYn() защищенный Метод

Ask for user input: Yes/No
protected askYn ( string $question ) : boolean
$question string Question to ask
Результат boolean Answer from user

fire() публичный Метод

Execute the console command.
public fire ( ) : void
Результат void

generate() защищенный Метод

Generate Migrations
protected generate ( string $method, array $tables ) : void
$method string Create Tables or Foreign Keys ['create', 'foreign_keys']
$tables array List of tables to create migrations for
Результат void

getArguments() защищенный Метод

Get the console command arguments.
protected getArguments ( ) : array
Результат array

getDatePrefix() защищенный Метод

Get the date prefix for the migration.
protected getDatePrefix ( ) : string
Результат string

getExcludedTables() защищенный Метод

Get a list of tables to exclude
protected getExcludedTables ( ) : array
Результат array

getFileGenerationPath() защищенный Метод

The path where the file will be created
protected getFileGenerationPath ( ) : string
Результат string

getOptions() защищенный Метод

Get the console command options.
protected getOptions ( ) : array
Результат array

getTemplateData() защищенный Метод

Fetch the template data
protected getTemplateData ( ) : array
Результат array

getTemplatePath() защищенный Метод

Get path to template for generator
protected getTemplatePath ( ) : string
Результат string

removeExcludedTables() защищенный Метод

Remove all the tables to exclude from the array of tables
protected removeExcludedTables ( $tables ) : array
$tables
Результат array

Описание свойств

$batch защищенное свойство

protected int $batch
Результат integer

$compiler защищенное свойство

protected TemplateCompiler,Way\Generators\Compilers $compiler
Результат Way\Generators\Compilers\TemplateCompiler

$config защищенное свойство

protected Repository,Illuminate\Config $config
Результат Illuminate\Config\Repository

$connection защищенное свойство

protected string|null $connection
Результат string | null

$datePrefix защищенное свойство

Filename date prefix (Y_m_d_His)
protected string $datePrefix
Результат string

$description защищенное свойство

The console command description.
protected string $description
Результат string

$fields защищенное свойство

Array of Fields to create in a new Migration Namely: Columns, Indexes and Foreign Keys
protected array $fields
Результат array

$file защищенное свойство

protected Filesystem,Way\Generators\Filesystem $file
Результат Way\Generators\Filesystem\Filesystem

$log защищенное свойство

protected bool $log
Результат boolean

$method защищенное свойство

protected string $method
Результат string

$migrationName защищенное свойство

protected string $migrationName
Результат string

$migrations защищенное свойство

List of Migrations that has been done
protected array $migrations
Результат array

$name защищенное свойство

The console command name.
protected string $name
Результат string

$repository защищенное свойство

protected MigrationRepositoryInterface,Illuminate\Database\Migrations $repository
Результат Illuminate\Database\Migrations\MigrationRepositoryInterface

$schemaGenerator защищенное свойство

protected SchemaGenerator,Xethron\MigrationsGenerator\Generators $schemaGenerator
Результат Xethron\MigrationsGenerator\Generators\SchemaGenerator

$table защищенное свойство

protected string $table
Результат string