PHP Class LazyRecord\Migration\MigrationGenerator

Mostrar archivo Open project: corneltek/lazyrecord Class Usage Examples

Protected Properties

Property Type Description
$filenameFormat
$logger
$migrationDir

Public Methods

Method Description
__construct ( CLIFramework\Logger $logger, $migrationDir )
createClassTemplate ( $taskName, $time = null ) : ClassTemplate\ClassFile
generate ( $taskName, $time = null )
generateFilename ( $taskName, $time = null )
generateWithDiff ( $taskName, $dataSourceId, array $schemas, $time = null )

Protected Methods

Method Description
appendQueryStatement ( CodeGen\ClassMethod $method, BaseDriver $driver, SQLBuilder\ToSqlInterface $query, SQLBuilder\ArgumentArray $args )
getTemplateDirs ( ) Returns code template directory.

Method Details

__construct() public method

public __construct ( CLIFramework\Logger $logger, $migrationDir )
$logger CLIFramework\Logger

appendQueryStatement() protected method

protected appendQueryStatement ( CodeGen\ClassMethod $method, BaseDriver $driver, SQLBuilder\ToSqlInterface $query, SQLBuilder\ArgumentArray $args )
$method CodeGen\ClassMethod
$driver SQLBuilder\Driver\BaseDriver
$query SQLBuilder\ToSqlInterface
$args SQLBuilder\ArgumentArray

createClassTemplate() public method

public createClassTemplate ( $taskName, $time = null ) : ClassTemplate\ClassFile
return ClassTemplate\ClassFile

generate() public method

public generate ( $taskName, $time = null )

generateFilename() public method

public generateFilename ( $taskName, $time = null )

generateWithDiff() public method

public generateWithDiff ( $taskName, $dataSourceId, array $schemas, $time = null )
$schemas array

getTemplateDirs() protected method

Returns code template directory.
protected getTemplateDirs ( )

Property Details

$filenameFormat protected_oe property

protected $filenameFormat

$logger protected_oe property

protected $logger

$migrationDir protected_oe property

protected $migrationDir