SetupVersionLast
extends SetupVersionBase
in package
Attributes
- #[Version]
- -1
Table of Contents
Properties
- $appConfig : AppConfiguration
- $logger : ILogger
- $newVersion : int
- $oldVersion : int
Methods
- __construct() : mixed
- getCurrentVersion() : int
- getVersion() : int
- [汎用] バージョン取得
- migrate() : void
- migrateDatabase() : void
- migrateIOSystem() : void
- splitStatements() : array<string|int, string>
- DB問い合わせ文の分割。
Properties
$appConfig
protected
AppConfiguration
$appConfig
$logger
protected
ILogger
$logger
$newVersion
private
int
$newVersion
$oldVersion
private
int
$oldVersion
Methods
__construct()
public
__construct(int $oldVersion, int $newVersion, AppConfiguration $appConfig, ILoggerFactory $loggerFactory) : mixed
Parameters
- $oldVersion : int
- $newVersion : int
- $appConfig : AppConfiguration
- $loggerFactory : ILoggerFactory
getCurrentVersion()
public
getCurrentVersion() : int
Return values
intgetVersion()
[汎用] バージョン取得
public
static getVersion(string|object $objectOrClassName) : int
Parameters
- $objectOrClassName : string|object
Tags
Return values
intmigrate()
public
migrate(IOSetupArgument $ioSetup, DatabaseSetupArgument $database) : void
Parameters
- $ioSetup : IOSetupArgument
- $database : DatabaseSetupArgument
migrateDatabase()
protected
migrateDatabase(DatabaseSetupArgument $argument) : void
Parameters
- $argument : DatabaseSetupArgument
migrateIOSystem()
protected
migrateIOSystem(IOSetupArgument $argument) : void
Parameters
- $argument : IOSetupArgument
splitStatements()
DB問い合わせ文の分割。
protected
splitStatements(string $multiStatement) : array<string|int, string>
Parameters
- $multiStatement : string