PHP Class Appzcoder\CrudGenerator\Commands\CrudMigrationCommand

Inheritance: extends Illuminate\Console\GeneratorCommand
Show file Open project: appzcoder/crud-generator

Protected Properties

Property Type Description
$description string The console command description.
$signature string The name and signature of the console command.
$type string The type of class being generated.
$typeLookup array Migration column types collection.

Protected Methods

Method Description
buildClass ( string $name ) : string Build the model class with the given name.
getPath ( string $name ) : string Get the destination class path.
getStub ( ) : string Get the stub file for the generator.
replaceSchemaDown ( string &$stub, string $schemaDown ) Replace the schema_down for the given stub.
replaceSchemaUp ( string &$stub, string $schemaUp ) Replace the schema_up for the given stub.

Method Details

buildClass() protected method

Build the model class with the given name.
protected buildClass ( string $name ) : string
$name string
return string

getPath() protected method

Get the destination class path.
protected getPath ( string $name ) : string
$name string
return string

getStub() protected method

Get the stub file for the generator.
protected getStub ( ) : string
return string

replaceSchemaDown() protected method

Replace the schema_down for the given stub.
protected replaceSchemaDown ( string &$stub, string $schemaDown )
$stub string
$schemaDown string

replaceSchemaUp() protected method

Replace the schema_up for the given stub.
protected replaceSchemaUp ( string &$stub, string $schemaUp )
$stub string
$schemaUp string

Property Details

$description protected property

The console command description.
protected string $description
return string

$signature protected property

The name and signature of the console command.
protected string $signature
return string

$type protected property

The type of class being generated.
protected string $type
return string

$typeLookup protected property

Migration column types collection.
protected array $typeLookup
return array