PHP Class Appzcoder\CrudGenerator\Commands\CrudMigrationCommand

Inheritance: extends Illuminate\Console\GeneratorCommand
Afficher le fichier Open project: appzcoder/crud-generator

Protected Properties

Свойство 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.

Méthodes protégées

Méthode 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 méthode

Build the model class with the given name.
protected buildClass ( string $name ) : string
$name string
Résultat string

getPath() protected méthode

Get the destination class path.
protected getPath ( string $name ) : string
$name string
Résultat string

getStub() protected méthode

Get the stub file for the generator.
protected getStub ( ) : string
Résultat string

replaceSchemaDown() protected méthode

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

replaceSchemaUp() protected méthode

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

Property Details

$description protected_oe property

The console command description.
protected string $description
Résultat string

$signature protected_oe property

The name and signature of the console command.
protected string $signature
Résultat string

$type protected_oe property

The type of class being generated.
protected string $type
Résultat string

$typeLookup protected_oe property

Migration column types collection.
protected array $typeLookup
Résultat array