PHP Class Phpmig\Console\Command\AbstractCommand

Author: Dave Marshall ([email protected])
Inheritance: extends Symfony\Component\Console\Command\Command
Afficher le fichier Open project: davedevelopment/phpmig Class Usage Examples

Protected Properties

Свойство Type Description
$adapter Phpmig\Adapter\AdapterInterface
$bootstrap string
$container ArrayAccess
$migrations array

Méthodes publiques

Méthode Description
getAdapter ( ) : Phpmig\Adapter\AdapterInterface Get Adapter
getBootstrap ( ) : string Get bootstrap
getContainer ( ) : ArrayAccess Get container
getMigrations ( ) : array Get migrations
setAdapter ( Phpmig\Adapter\AdapterInterface $adapter ) : AbstractCommand Set adapter
setBootstrap ( $bootstrap ) : AbstractCommand Set bootstrap
setContainer ( ArrayAccess $container ) : AbstractCommand Set container
setMigrations ( array $migrations ) : AbstractCommand Set migrations

Méthodes protégées

Méthode Description
bootstrap ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : void Bootstrap phpmig
bootstrapAdapter ( Symfony\Component\Console\Input\InputInterface $input ) : Phpmig\Adapter\AdapterInterface
bootstrapContainer ( ) : ArrayAccess
bootstrapMigrations ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
bootstrapMigrator ( Symfony\Component\Console\Output\OutputInterface $output ) : mixed
configure ( )
findBootstrapFile ( string $filename ) : array | string
migrationToClassName ( $migrationName ) transform create_table_user to CreateTableUser

Method Details

bootstrap() protected méthode

Bootstrap phpmig
protected bootstrap ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : void
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
Résultat void

bootstrapAdapter() protected méthode

protected bootstrapAdapter ( Symfony\Component\Console\Input\InputInterface $input ) : Phpmig\Adapter\AdapterInterface
$input Symfony\Component\Console\Input\InputInterface
Résultat Phpmig\Adapter\AdapterInterface

bootstrapContainer() protected méthode

protected bootstrapContainer ( ) : ArrayAccess
Résultat ArrayAccess The container

bootstrapMigrations() protected méthode

protected bootstrapMigrations ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface

bootstrapMigrator() protected méthode

protected bootstrapMigrator ( Symfony\Component\Console\Output\OutputInterface $output ) : mixed
$output Symfony\Component\Console\Output\OutputInterface
Résultat mixed

configure() protected méthode

protected configure ( )

findBootstrapFile() protected méthode

protected findBootstrapFile ( string $filename ) : array | string
$filename string
Résultat array | string

getAdapter() public méthode

Get Adapter
public getAdapter ( ) : Phpmig\Adapter\AdapterInterface
Résultat Phpmig\Adapter\AdapterInterface

getBootstrap() public méthode

Get bootstrap
public getBootstrap ( ) : string
Résultat string

getContainer() public méthode

Get container
public getContainer ( ) : ArrayAccess
Résultat ArrayAccess

getMigrations() public méthode

Get migrations
public getMigrations ( ) : array
Résultat array

migrationToClassName() protected méthode

transform create_table_user to CreateTableUser
protected migrationToClassName ( $migrationName )

setAdapter() public méthode

Set adapter
public setAdapter ( Phpmig\Adapter\AdapterInterface $adapter ) : AbstractCommand
$adapter Phpmig\Adapter\AdapterInterface
Résultat AbstractCommand

setBootstrap() public méthode

Set bootstrap
public setBootstrap ( $bootstrap ) : AbstractCommand
Résultat AbstractCommand

setContainer() public méthode

Set container
public setContainer ( ArrayAccess $container ) : AbstractCommand
$container ArrayAccess
Résultat AbstractCommand

setMigrations() public méthode

Set migrations
public setMigrations ( array $migrations ) : AbstractCommand
$migrations array
Résultat AbstractCommand

Property Details

$adapter protected_oe property

protected AdapterInterface,Phpmig\Adapter $adapter
Résultat Phpmig\Adapter\AdapterInterface

$bootstrap protected_oe property

protected string $bootstrap
Résultat string

$container protected_oe property

protected ArrayAccess $container
Résultat ArrayAccess

$migrations protected_oe property

protected array $migrations
Résultat array