Baleen\Migrations\Migration\VersionRepository\MigrationRepository

class MigrationRepository

Class MigrationRepository.

setMigrationFactory(FactoryInterface $factory)

{@inheritdoc}

Parameters:
getMigrationFactory()

Returns the migration factory. Creates a new SimpleFactory object for it if none was configured.

Returns:FactoryInterface
fetchAll()

{@inheritdoc}

Returns:Linked
doFetchAll()

Must fetch all versions available to the repository, load them with their migrations, and return them as a Linked collection. It must use a factory (default or supplied by ‘setMigrationFactory()’) to instantiate each of the migrations.

Returns:mixed
setComparator(ComparatorInterface $comparator)
Parameters:
getComparator()
Returns:ComparatorInterface