PHP Класс Baum\Console\InstallCommand

Наследование: extends Illuminate\Console\Command
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$description string The console command description.
$migrator Baum\Generators\MigrationGenerator Migration generator instance.
$modeler Baum\Generators\ModelGenerator Model generator instance.
$name string The console command name.

Открытые методы

Метод Описание
__construct ( MigrationGenerator $migrator, ModelGenerator $modeler ) : void Create a new command instance.
fire ( ) : void Execute the console command.

Защищенные методы

Метод Описание
getArguments ( ) : array Get the command arguments.
getMigrationsPath ( ) : string Get the path to the migrations directory.
getModelsPath ( ) : string Get the path to the models directory.
writeMigration ( string $name ) : string Write the migration file to disk.
writeModel ( string $name ) : string Write the model file to disk.

Описание методов

__construct() публичный Метод

Create a new command instance.
public __construct ( MigrationGenerator $migrator, ModelGenerator $modeler ) : void
$migrator Baum\Generators\MigrationGenerator
$modeler Baum\Generators\ModelGenerator
Результат void

fire() публичный Метод

Basically, we'll write the migration and model stubs out to disk inflected with the name provided. Once its done, we'll dump-autoload for the entire framework to make sure that the new classes are registered by the class loaders.
public fire ( ) : void
Результат void

getArguments() защищенный Метод

Get the command arguments.
protected getArguments ( ) : array
Результат array

getMigrationsPath() защищенный Метод

Get the path to the migrations directory.
protected getMigrationsPath ( ) : string
Результат string

getModelsPath() защищенный Метод

Get the path to the models directory.
protected getModelsPath ( ) : string
Результат string

writeMigration() защищенный Метод

Write the migration file to disk.
protected writeMigration ( string $name ) : string
$name string
Результат string

writeModel() защищенный Метод

Write the model file to disk.
protected writeModel ( string $name ) : string
$name string
Результат string

Описание свойств

$description защищенное свойство

The console command description.
protected string $description
Результат string

$migrator защищенное свойство

Migration generator instance.
protected MigrationGenerator,Baum\Generators $migrator
Результат Baum\Generators\MigrationGenerator

$modeler защищенное свойство

Model generator instance.
protected ModelGenerator,Baum\Generators $modeler
Результат Baum\Generators\ModelGenerator

$name защищенное свойство

The console command name.
protected string $name
Результат string