PHP Class Flugg\Responder\Console\MakeTransformer

Author: Alexander Tømmerås ([email protected])
Inheritance: extends Illuminate\Console\Command
Afficher le fichier Open project: flugger/laravel-responder

Protected Properties

Свойство Type Description
$description string The console command description.
$files Illuminate\Filesystem\Filesystem The file system instance.
$signature string The name and signature of the console command.

Méthodes publiques

Méthode Description
__construct ( Illuminate\Filesystem\Filesystem $files ) Create a new command instance.
handle ( ) : mixed Execute the console command.

Méthodes protégées

Méthode Description
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.

Method Details

__construct() public méthode

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

generateTransformer() protected méthode

Generate the transformer class.
protected generateTransformer ( ) : void
Résultat void

getClassFromNamespace() protected méthode

Get the full class path for the transformer.
protected getClassFromNamespace ( string $namespace ) : string
$namespace string
Résultat string

getModelNamespace() protected méthode

Get the full class path for the model.
protected getModelNamespace ( string $name ) : string
$name string
Résultat string

handle() public méthode

Execute the console command.
public handle ( ) : mixed
Résultat mixed

makeDirectory() protected méthode

Build a transformers directory if one doesn't exist.
protected makeDirectory ( string $path ) : void
$path string
Résultat void

makeTransformer() protected méthode

Build the transformer class using the given name and stub.
protected makeTransformer ( string $name, string $stub ) : string
$name string
$stub string
Résultat string

replaceClass() protected méthode

Replace the class name for the given stub.
protected replaceClass ( string $stub, string $name ) : string
$stub string
$name string
Résultat string

replaceModel() protected méthode

Replace the model for the given stub.
protected replaceModel ( string $stub, string $name ) : string
$stub string
$name string
Résultat string

replaceNamespace() protected méthode

Replace the namespace for the given stub.
protected replaceNamespace ( string $stub ) : string
$stub string
Résultat string

Property Details

$description protected_oe property

The console command description.
protected string $description
Résultat string

$files protected_oe property

The file system instance.
protected Filesystem,Illuminate\Filesystem $files
Résultat Illuminate\Filesystem\Filesystem

$signature protected_oe property

The name and signature of the console command.
protected string $signature
Résultat string