class MigrationStatus

Supports the tracking of migration status for tables.

Properties

private string $batch

The batch value for a particular migration.

private string $name

The name of the migration class.

private string $status

Indicates either a 'Ran' or 'Pending' status.

Methods

__construct(string $batch, string $name, bool $isRan = false)

Setups the MigrationStatus object

string
getBatch()

Getter function for batch;

string
getName()

Getter function for migration class' name.

string
getStatus()

Getter function for status of the migration.

Details

at line 35
__construct(string $batch, string $name, bool $isRan = false)

Setups the MigrationStatus object

Parameters

string $batch

The batch value for a particular migration.

string $name

The name of the migration class.

bool $isRan

Default value is false. It represents whether or not a migration has been ran.

at line 46
string getBatch()

Getter function for batch;

Return Value

string

$batch The value for batch.

at line 55
string getName()

Getter function for migration class' name.

Return Value

string

$name The name of the migration class.

at line 65
string getStatus()

Getter function for status of the migration.

Return Value

string

$status The status of the migration represented as a string.