PHP Класс Flugg\Responder\Console\MakeTransformer

Автор: Alexander Tømmerås ([email protected])
Наследование: extends Illuminate\Console\Command
Показать файл Открыть проект

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

Свойство Тип Описание
$description string The console command description.
$files Illuminate\Filesystem\Filesystem The file system instance.
$signature string The name and signature of the console command.

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

Метод Описание
__construct ( Illuminate\Filesystem\Filesystem $files ) Create a new command instance.
handle ( ) : mixed Execute the console command.

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

Метод Описание
generateTransformer ( ) : void Generate the transformer class.
getClassFromNamespace ( string $namespace ) : string Get the full class path for the transformer.
getModelNamespace ( string $name ) : string Get the full class path for the model.
makeDirectory ( string $path ) : void Build a transformers directory if one doesn't exist.
makeTransformer ( string $name, string $stub ) : string Build the transformer class using the given name and stub.
replaceClass ( string $stub, string $name ) : string Replace the class name for the given stub.
replaceModel ( string $stub, string $name ) : string Replace the model for the given stub.
replaceNamespace ( string $stub ) : string Replace the namespace for the given stub.

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

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

Create a new command instance.
public __construct ( Illuminate\Filesystem\Filesystem $files )
$files Illuminate\Filesystem\Filesystem

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

Generate the transformer class.
protected generateTransformer ( ) : void
Результат void

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

Get the full class path for the transformer.
protected getClassFromNamespace ( string $namespace ) : string
$namespace string
Результат string

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

Get the full class path for the model.
protected getModelNamespace ( string $name ) : string
$name string
Результат string

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

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

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

Build a transformers directory if one doesn't exist.
protected makeDirectory ( string $path ) : void
$path string
Результат void

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

Build the transformer class using the given name and stub.
protected makeTransformer ( string $name, string $stub ) : string
$name string
$stub string
Результат string

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

Replace the class name for the given stub.
protected replaceClass ( string $stub, string $name ) : string
$stub string
$name string
Результат string

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

Replace the model for the given stub.
protected replaceModel ( string $stub, string $name ) : string
$stub string
$name string
Результат string

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

Replace the namespace for the given stub.
protected replaceNamespace ( string $stub ) : string
$stub string
Результат string

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

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

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

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

The file system instance.
protected Filesystem,Illuminate\Filesystem $files
Результат Illuminate\Filesystem\Filesystem

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

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