mirror of
https://github.com/JBDevLabs/ezmigrationbundle.git
synced 2026-03-24 08:52:16 +01:00
35 lines
868 B
PHP
35 lines
868 B
PHP
<?php
|
|
|
|
namespace Kaliop\eZMigrationBundle\API;
|
|
|
|
/**
|
|
* Implemented by classes which store details of the executing migrations contexts
|
|
*/
|
|
interface ContextStorageHandlerInterface
|
|
{
|
|
/**
|
|
* @param string $migrationName
|
|
* @return array|null
|
|
*/
|
|
public function loadMigrationContext($migrationName);
|
|
|
|
/**
|
|
* Stores a migration context
|
|
* @param string $migrationName
|
|
* @param array $context
|
|
*/
|
|
public function storeMigrationContext($migrationName, array $context);
|
|
|
|
/**
|
|
* Removes a migration context from storage (regardless of the migration status)
|
|
*
|
|
* @param string $migrationName
|
|
*/
|
|
public function deleteMigrationContext($migrationName);
|
|
|
|
/**
|
|
* Removes all migration contexts from storage (regardless of the migration status)
|
|
*/
|
|
public function deleteMigrationContexts();
|
|
}
|