PHP 클래스 Caffeinated\Modules\Console\Commands\ModuleMigrateResetCommand

상속: extends Illuminate\Console\Command, use trait Illuminate\Console\ConfirmableTrait
파일 보기 프로젝트 열기: caffeinated/modules

보호된 프로퍼티들

프로퍼티 타입 설명
$description string The console command description.
$files Illuminate\Filesystem\Filesystem
$migrator Illuminate\Database\Migrations\Migrator
$module Caffeinated\Modules\Modules
$name string The console command name.

공개 메소드들

메소드 설명
__construct ( Modules $module, Illuminate\Filesystem\Filesystem $files, Illuminate\Database\Migrations\Migrator $migrator ) Create a new command instance.
fire ( ) : mixed Execute the console command.

보호된 메소드들

메소드 설명
getArguments ( ) : array Get the console command arguments.
getMigrationPath ( $slug ) : string Get migrations path.
getOptions ( ) : array Get the console command options.
getParameters ( string $slug ) : array Get the console command parameters.
reset ( string $slug ) : mixed Run the migration reset for the specified module.
runDown ( string $slug, object $migration, boolean $pretend ) Run "down" a migration instance.

메소드 상세

__construct() 공개 메소드

Create a new command instance.
public __construct ( Modules $module, Illuminate\Filesystem\Filesystem $files, Illuminate\Database\Migrations\Migrator $migrator )
$module Caffeinated\Modules\Modules
$files Illuminate\Filesystem\Filesystem
$migrator Illuminate\Database\Migrations\Migrator

fire() 공개 메소드

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

getArguments() 보호된 메소드

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

getMigrationPath() 보호된 메소드

Get migrations path.
protected getMigrationPath ( $slug ) : string
리턴 string

getOptions() 보호된 메소드

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

getParameters() 보호된 메소드

Get the console command parameters.
protected getParameters ( string $slug ) : array
$slug string
리턴 array

reset() 보호된 메소드

Migrations should be reset in the reverse order that they were migrated up as. This ensures the database is properly reversed without conflict.
protected reset ( string $slug ) : mixed
$slug string
리턴 mixed

runDown() 보호된 메소드

Run "down" a migration instance.
protected runDown ( string $slug, object $migration, boolean $pretend )
$slug string
$migration object
$pretend boolean

프로퍼티 상세

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

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

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

protected Filesystem,Illuminate\Filesystem $files
리턴 Illuminate\Filesystem\Filesystem

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

protected Migrator,Illuminate\Database\Migrations $migrator
리턴 Illuminate\Database\Migrations\Migrator

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

protected Modules,Caffeinated\Modules $module
리턴 Caffeinated\Modules\Modules

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

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