PHP Class Mojopollo\Schema\Commands\MakeMigrationJsonCommand

Inheritance: extends Illuminate\Console\Command
Datei anzeigen Open project: mojopollo/laravel-json-schema

Protected Properties

Property Type Description
$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

Public Methods

Method Description
__construct ( MakeMigrationJson $makeMigrationJson, Illuminate\Filesystem\Filesystem $filesystem ) Create a new command instance.
fire ( ) : mixed Execute the console command.

Protected Methods

Method Description
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

Method Details

__construct() public method

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

createUndoFile() protected method

Creates the undo file
protected createUndoFile ( ) : void
return void

fire() public method

Execute the console command.
public fire ( ) : mixed
return mixed

getArguments() protected method

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

getOptions() protected method

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

makeJsonMigration() protected method

Make the json migration
protected makeJsonMigration ( ) : void
return void

undo() protected method

Perform undo action
protected undo ( ) : void
return void

validate() protected method

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

Property Details

$description protected_oe property

The console command description.
protected string $description
return string

$filePath protected_oe property

The file path to the json file
protected string $filePath
return string

$filePathDirectory protected_oe property

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

$filesystem protected_oe property

Filesystem instance
protected Filesystem,Illuminate\Filesystem $filesystem
return Illuminate\Filesystem\Filesystem

$makeMigrationJson protected_oe property

MakeMigrationJson instance
protected MakeMigrationJson,Mojopollo\Schema $makeMigrationJson
return Mojopollo\Schema\MakeMigrationJson

$name protected_oe property

The console command name.
protected string $name
return string

$startTime protected_oe property

The timestamp when file generation started
protected int $startTime
return integer

$undoFilePath protected_oe property

The file path to the json undo file
protected string $undoFilePath
return string