PHP Class Baum\Generators\Generator

Datei anzeigen Open project: gazsp/baum

Protected Properties

Property Type Description
$files Illuminate\Filesystem\Filesystem The filesystem instance.

Public Methods

Method 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.

Protected Methods

Method 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 method

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

classify() protected method

Inflect to a class name.
protected classify ( string $input ) : string
$input string
return string

getFilesystem() public method

Get the filesystem instance.
public getFilesystem ( ) : Illuminate\Filesystem\Filesystem
return Illuminate\Filesystem\Filesystem

getStub() protected method

Get the given stub by name.
protected getStub ( $name ) : void
return void

getStubPath() public method

Get the path to the stubs.
public getStubPath ( ) : string
return string

parseStub() protected method

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

tableize() protected method

Inflect to table name.
protected tableize ( string $input ) : string
$input string
return string

Property Details

$files protected_oe property

The filesystem instance.
protected Filesystem,Illuminate\Filesystem $files
return Illuminate\Filesystem\Filesystem