Files
ezmigrationbundle/API/ContextProviderInterface.php
2017-05-06 01:26:11 +01:00

25 lines
602 B
PHP

<?php
namespace Kaliop\eZMigrationBundle\API;
use Kaliop\eZMigrationBundle\API\Value\MigrationDefinition;
use Kaliop\eZMigrationBundle\API\Value\Migration;
/**
* Implemented by classes which have 'context' data that should be stored/restored when migrations are suspended
*/
interface ContextProviderInterface
{
/**
* @param string $migrationName
* @return array|null
*/
public function getCurrentContext($migrationName);
/**
* @param string $migrationName
* @param array $context
*/
public function restoreContext($migrationName, array $context);
}