PHP Class Baum\Generators\MigrationGenerator

Inheritance: extends Generator
Afficher le fichier Open project: gazsp/baum Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

getDatePrefix() protected méthode

Get the date prefix for the migration.
protected getDatePrefix ( ) : integer
Résultat integer

getMigrationClassName() protected méthode

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

getMigrationName() protected méthode

Get the migration name.
protected getMigrationName ( string $name ) : string
$name string
Résultat string

getPath() protected méthode

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