PHP Class Baum\Generators\MigrationGenerator

Inheritance: extends Generator
Datei anzeigen Open project: gazsp/baum Class Usage Examples

Public Methods

Method Description
create ( string $name, string $path ) : string Create a new migration at the given path.

Protected Methods

Method Description
getDatePrefix ( ) : integer Get the date prefix for the migration.
getMigrationClassName ( string $name ) Get the name for the migration class.
getMigrationName ( string $name ) : string Get the migration name.
getPath ( string $name, string $path ) : string Get the full path name to the migration.

Method Details

create() public method

Create a new migration at the given path.
public create ( string $name, string $path ) : string
$name string
$path string
return string

getDatePrefix() protected method

Get the date prefix for the migration.
protected getDatePrefix ( ) : integer
return integer

getMigrationClassName() protected method

Get the name for the migration class.
protected getMigrationClassName ( string $name )
$name string

getMigrationName() protected method

Get the migration name.
protected getMigrationName ( string $name ) : string
$name string
return string

getPath() protected method

Get the full path name to the migration.
protected getPath ( string $name, string $path ) : string
$name string
$path string
return string