src/Synapse/Migration/CreateMigrationCommand.php
protected function generateClassName($time, $description)
    {
        $description = substr(strtolower($description), 0, 30);
        $description = ucwords($description);
        $description = preg_replace('/[^a-zA-Z]+/', '', $description);
        return 'Migration'.$time.$description;
    }
protected function generateClassName($time, $description)
    {
        $description = substr(strtolower($description), 0, 30);
        $description = ucwords($description);
        $description = preg_replace('/[^a-zA-Z]+/', '', $description);
        return 'Migration'.$time.$description;
    }
protected function generateClassName ( $ time , $ description ) { $ description = substr ( strtolower ( $ description ) , 0 , 30 ) ; $ description = ucwords ( $ description ) ; $ description = preg_replace ( '/[^a-zA-Z]+/' , '' , $ description ) ; return 'Migration' . $ time . $ description ; }
Get the name of the new migration class

Converts description to PascalCase and prepends constant string and timestamp.
Example:
// From:
Example description of a migration

// To:
Migration20140220001906ExampleDescriptionOfAMigration

@param  string $time        Timestamp
@param  string $description User-provided description of new migration
@return string
Get the name of the new migration class