PHP 클래스 Mpociot\LaravelTestFactoryHelper\Console\GenerateCommand

상속: extends Illuminate\Console\Command
파일 보기 프로젝트 열기: mpociot/laravel-test-factory-helper

보호된 프로퍼티들

프로퍼티 타입 설명
$description string The console command description.
$dir string
$dirs array
$existingFactories string
$filename string
$files Illuminate\Filesystem\Filesystem
$name string The console command name.
$properties array
$reset
$view Illuminate\Contracts\View\Factory

공개 메소드들

메소드 설명
__construct ( Illuminate\Filesystem\Filesystem $files, $view )
fire ( ) : void Execute the console command.

보호된 메소드들

메소드 설명
createFactory ( string $class ) : string
generateFactories ( $loadModels, $ignore = '' )
getArguments ( ) : array Get the console command arguments.
getOptions ( ) : array Get the console command options.
getPropertiesFromMethods ( Model $model )
getPropertiesFromTable ( Model $model ) Load the properties from the database table.
loadModels ( )
setProperty ( string $name, string | null $type = null )

메소드 상세

__construct() 공개 메소드

public __construct ( Illuminate\Filesystem\Filesystem $files, $view )
$files Illuminate\Filesystem\Filesystem

createFactory() 보호된 메소드

protected createFactory ( string $class ) : string
$class string
리턴 string

fire() 공개 메소드

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

generateFactories() 보호된 메소드

protected generateFactories ( $loadModels, $ignore = '' )

getArguments() 보호된 메소드

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

getOptions() 보호된 메소드

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

getPropertiesFromMethods() 보호된 메소드

protected getPropertiesFromMethods ( Model $model )
$model Illuminate\Database\Eloquent\Model

getPropertiesFromTable() 보호된 메소드

Load the properties from the database table.
protected getPropertiesFromTable ( Model $model )
$model Illuminate\Database\Eloquent\Model

loadModels() 보호된 메소드

protected loadModels ( )

setProperty() 보호된 메소드

protected setProperty ( string $name, string | null $type = null )
$name string
$type string | null

프로퍼티 상세

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

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

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

protected string $dir
리턴 string

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

protected array $dirs
리턴 array

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

protected string $existingFactories
리턴 string

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

protected string $filename
리턴 string

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

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

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

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

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

protected array $properties
리턴 array

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

protected $reset

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

protected Factory,Illuminate\Contracts\View $view
리턴 Illuminate\Contracts\View\Factory