Baleen\Migrations\Delta\VersionRepository\MigrationRepositoryInterface¶
-
interface
MigrationRepositoryInterface
¶ Provides a collection of Versions that have been migrated.
-
fetchAll
()¶ Reads versions from the storage file.
Returns: Migrated
-
updateAll
(Migrated $versions)¶ Write a collection of versions to the storage file.
Parameters: - $versions (Migrated) –
Returns: bool Returns false on failure.
-
update
(DeltaInterface $version)¶ Saves or deletes a version depending on whether the version is respectively migrated or not.
Parameters: - $version (DeltaInterface) –
Returns: bool The result of calling ‘save’ or ‘delete’ on the version.
-
save
(DeltaInterface $version)¶ Adds a version into storage
Parameters: - $version (DeltaInterface) –
Returns: bool
-
delete
(DeltaInterface $version)¶ Removes a version from storage
Parameters: - $version (DeltaInterface) –
Returns: bool
-