PHP 클래스 Mojopollo\Schema\Commands\MakeMigrationJsonCommand

상속: extends Illuminate\Console\Command
파일 보기 프로젝트 열기: mojopollo/laravel-json-schema

보호된 프로퍼티들

프로퍼티 타입 설명
$description string The console command description.
$filePath string The file path to the json file
$filePathDirectory string The directory of the file path to the json file
$filesystem Illuminate\Filesystem\Filesystem Filesystem instance
$makeMigrationJson Mojopollo\Schema\MakeMigrationJson MakeMigrationJson instance
$name string The console command name.
$startTime integer The timestamp when file generation started
$undoFilePath string The file path to the json undo file

공개 메소드들

메소드 설명
__construct ( MakeMigrationJson $makeMigrationJson, Illuminate\Filesystem\Filesystem $filesystem ) Create a new command instance.
fire ( ) : mixed Execute the console command.

보호된 메소드들

메소드 설명
createUndoFile ( ) : void Creates the undo file
getArguments ( ) : array Get the console command arguments.
getOptions ( ) : array Get the console command options.
makeJsonMigration ( ) : void Make the json migration
undo ( ) : void Perform undo action
validate ( ) : void Validate the json file and console report any issues

메소드 상세

__construct() 공개 메소드

Create a new command instance.
public __construct ( MakeMigrationJson $makeMigrationJson, Illuminate\Filesystem\Filesystem $filesystem )
$makeMigrationJson Mojopollo\Schema\MakeMigrationJson
$filesystem Illuminate\Filesystem\Filesystem

createUndoFile() 보호된 메소드

Creates the undo file
protected createUndoFile ( ) : void
리턴 void

fire() 공개 메소드

Execute the console command.
public fire ( ) : mixed
리턴 mixed

getArguments() 보호된 메소드

Get the console command arguments.
protected getArguments ( ) : array
리턴 array

getOptions() 보호된 메소드

Get the console command options.
protected getOptions ( ) : array
리턴 array

makeJsonMigration() 보호된 메소드

Make the json migration
protected makeJsonMigration ( ) : void
리턴 void

undo() 보호된 메소드

Perform undo action
protected undo ( ) : void
리턴 void

validate() 보호된 메소드

Validate the json file and console report any issues
protected validate ( ) : void
리턴 void

프로퍼티 상세

$description 보호되어 있는 프로퍼티

The console command description.
protected string $description
리턴 string

$filePath 보호되어 있는 프로퍼티

The file path to the json file
protected string $filePath
리턴 string

$filePathDirectory 보호되어 있는 프로퍼티

The directory of the file path to the json file
protected string $filePathDirectory
리턴 string

$filesystem 보호되어 있는 프로퍼티

Filesystem instance
protected Filesystem,Illuminate\Filesystem $filesystem
리턴 Illuminate\Filesystem\Filesystem

$makeMigrationJson 보호되어 있는 프로퍼티

MakeMigrationJson instance
protected MakeMigrationJson,Mojopollo\Schema $makeMigrationJson
리턴 Mojopollo\Schema\MakeMigrationJson

$name 보호되어 있는 프로퍼티

The console command name.
protected string $name
리턴 string

$startTime 보호되어 있는 프로퍼티

The timestamp when file generation started
protected int $startTime
리턴 integer

$undoFilePath 보호되어 있는 프로퍼티

The file path to the json undo file
protected string $undoFilePath
리턴 string