class MigrationStatus (View source)

Migration status to keep track of applied migrations.

Constants

DIRECTION_UP

DIRECTION_DOWN

Properties

protected string $version

Version that was migrated to.

protected string $direction

Direction of this migration status, one of the DIRECTION_* constants.

protected DateTime $applicationTimeStamp

Methods

__construct(string $version, $direction, DateTime $applicationTimeStamp)

No description

getApplicationTimeStamp()

The date and time the recorded migration was applied.

string
getDirection()

The direction of the applied migration.

string
getVersion()

The version of the applied migration.

Details

__construct(string $version, $direction, DateTime $applicationTimeStamp)

No description

Parameters

string $version
$direction
DateTime $applicationTimeStamp

DateTime getApplicationTimeStamp()

The date and time the recorded migration was applied.

Return Value

DateTime

string getDirection()

The direction of the applied migration.

Return Value

string

string getVersion()

The version of the applied migration.

Return Value

string