PHP Класс Barryvdh\LaravelIdeHelper\Console\ModelsCommand

Автор: Barry vd. Heuvel ([email protected])
Наследование: extends Illuminate\Console\Command
Показать файл Открыть проект

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

Свойство Тип Описание
$description string The console command description.
$dirs
$filename
$files Illuminate\Filesystem\Filesystem
$methods
$name string The console command name.
$properties
$reset
$write

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

Метод Описание
__construct ( Illuminate\Filesystem\Filesystem $files )
fire ( ) : void Execute the console command.
getParameters ( $method ) : array Get the parameters and format them correctly

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

Метод Описание
castPropertiesType ( Model $model ) cast the properties's type from $casts.
createPhpDocs ( string $class ) : string
generateDocs ( $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.
getReturnTypeFromDocBlock ( ReflectionMethod $reflection ) : null | string Get method return type based on it DocBlock comment
getTypeOverride ( string $type ) : string Returns the overide type for the give type.
hasCamelCaseModelProperties ( ) : boolean
loadModels ( )
setMethod ( $name, $type = '', $arguments = [] )
setProperty ( string $name, string | null $type = null, boolean | null $read = null, boolean | null $write = null, string | null $comment = '' )

Приватные методы

Метод Описание
getCollectionClass ( string $className ) : string Determine a model classes' collection type.

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

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

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

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

cast the properties's type from $casts.
protected castPropertiesType ( Model $model )
$model Illuminate\Database\Eloquent\Model

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

protected createPhpDocs ( string $class ) : string
$class string
Результат string

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

Execute the console command.
public fire ( ) : void
Результат void

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

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

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

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

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

Get the console command options.
protected getOptions ( ) : array
Результат array

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

Get the parameters and format them correctly
public getParameters ( $method ) : array
$method
Результат 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

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

Get method return type based on it DocBlock comment
protected getReturnTypeFromDocBlock ( ReflectionMethod $reflection ) : null | string
$reflection ReflectionMethod
Результат null | string

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

Returns the overide type for the give type.
protected getTypeOverride ( string $type ) : string
$type string
Результат string

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

protected hasCamelCaseModelProperties ( ) : boolean
Результат boolean

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

protected loadModels ( )

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

protected setMethod ( $name, $type = '', $arguments = [] )

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

protected setProperty ( string $name, string | null $type = null, boolean | null $read = null, boolean | null $write = null, string | null $comment = '' )
$name string
$type string | null
$read boolean | null
$write boolean | null
$comment string | null

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

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

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

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

protected $dirs

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

protected $filename

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

protected Filesystem,Illuminate\Filesystem $files
Результат Illuminate\Filesystem\Filesystem

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

protected $methods

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

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

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

protected $properties

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

protected $reset

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

protected $write