PHP 클래스 Xethron\MigrationsGenerator\MigrateGenerateCommand

상속: extends Way\Generators\Commands\GeneratorCommand
파일 보기 프로젝트 열기: xethron/migrations-generator

보호된 프로퍼티들

프로퍼티 타입 설명
$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