PHP Класс Mpociot\LaravelTestFactoryHelper\Console\GenerateCommand

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

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

Свойство Тип Описание
$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