PHP Class Baum\Generators\Generator

Afficher le fichier Open project: gazsp/baum

Protected Properties

Свойство Type Description
$files Illuminate\Filesystem\Filesystem The filesystem instance.

Méthodes publiques

Méthode Description
__construct ( Illuminate\Filesystem\Filesystem $files ) : void Create a new MigrationGenerator instance.
getFilesystem ( ) : Illuminate\Filesystem\Filesystem Get the filesystem instance.
getStubPath ( ) : string Get the path to the stubs.

Méthodes protégées

Méthode Description
classify ( string $input ) : string Inflect to a class name.
getStub ( $name ) : void Get the given stub by name.
parseStub ( string $stub, string $replacements = [] ) : string Parse the provided stub and replace via the array given.
tableize ( string $input ) : string Inflect to table name.

Method Details

__construct() public méthode

Create a new MigrationGenerator instance.
public __construct ( Illuminate\Filesystem\Filesystem $files ) : void
$files Illuminate\Filesystem\Filesystem
Résultat void

classify() protected méthode

Inflect to a class name.
protected classify ( string $input ) : string
$input string
Résultat string

getFilesystem() public méthode

Get the filesystem instance.
public getFilesystem ( ) : Illuminate\Filesystem\Filesystem
Résultat Illuminate\Filesystem\Filesystem

getStub() protected méthode

Get the given stub by name.
protected getStub ( $name ) : void
Résultat void

getStubPath() public méthode

Get the path to the stubs.
public getStubPath ( ) : string
Résultat string

parseStub() protected méthode

Parse the provided stub and replace via the array given.
protected parseStub ( string $stub, string $replacements = [] ) : string
$stub string
$replacements string
Résultat string

tableize() protected méthode

Inflect to table name.
protected tableize ( string $input ) : string
$input string
Résultat string

Property Details

$files protected_oe property

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