final class MigrationStatus (View source)

Immutable snapshot of the migration status known to the framework.

Methods

__construct(array $registered, array $orphaned, bool $databaseAvailable = true)
array

Returns the registered migrations and their current states.

array
array

Returns applied migration identifiers that are no longer registered.

array
bool

Indicates whether the database-backed migration history was available.

bool

Details

__construct

__construct(array $registered, array $orphaned, bool $databaseAvailable = true)

No description

Parameters

array $registered
array $orphaned
bool $databaseAvailable

Whether the database-backed history was available for verification.

registered

array registered()

Returns the registered migrations and their current states.

Return Value

array

orphaned

array orphaned()

Returns applied migration identifiers that are no longer registered.

Return Value

array

databaseAvailable

bool databaseAvailable()

Indicates whether the database-backed migration history was available.

Return Value

bool