\App\Base\Overrides\MigrationsCollection

Overrides migrations collection in order to have them sorted

Summary

Methods
Properties
Constants
__construct()
attach()
detach()
setNamespace()
getNamespace()
migrate()
count()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
execute()
$adapter
$list
$namespace
N/A

Properties

$adapter

$adapter : \Genkgo\Migrations\AdapterInterface

Type

\Genkgo\Migrations\AdapterInterface — adapter

$list

$list : array

Type

array — migrations collection

$namespace

$namespace : string

Type

string — namespace

Methods

__construct()

__construct(\Genkgo\Migrations\AdapterInterface  $adapter) : mixed

constructor

Parameters

\Genkgo\Migrations\AdapterInterface $adapter

Returns

mixed —

attach()

attach(\Genkgo\Migrations\MigrationInterface  $migration) : mixed

attach migration

Parameters

\Genkgo\Migrations\MigrationInterface $migration

Returns

mixed —

detach()

detach(\Genkgo\Migrations\MigrationInterface  $migration) : mixed

detach migration

Parameters

\Genkgo\Migrations\MigrationInterface $migration

Returns

mixed —

setNamespace()

setNamespace( $namespace) : $this

sets namespace

Parameters

$namespace

Returns

$this —

getNamespace()

getNamespace() : string

gets namespace

Returns

string —

migrate()

migrate(int  $direction = MigrationInterface::DIRECTION_UP) : \Genkgo\Migrations\Log

do the migration

Parameters

int $direction

Returns

\Genkgo\Migrations\Log —

count()

count() : int

gets migrations count

Returns

int —

execute()

execute(\Genkgo\Migrations\MigrationInterface  $migration,  $direction) : mixed

executes a single migration

Parameters

\Genkgo\Migrations\MigrationInterface $migration
$direction

Returns

mixed —