mirror of
https://github.com/JBDevLabs/ezmigrationbundle.git
synced 2026-03-24 17:02:18 +01:00
24 lines
667 B
PHP
24 lines
667 B
PHP
<?php
|
|
|
|
namespace Kaliop\eZMigrationBundle\API;
|
|
|
|
use Kaliop\eZMigrationBundle\API\Exception\InvalidMatchConditionsException;
|
|
|
|
/**
|
|
* Interface that all migration definition handlers need to implement if they can generate a migration definition.
|
|
*/
|
|
interface MigrationGeneratorInterface
|
|
{
|
|
/**
|
|
* Generates a migration definition in array format
|
|
*
|
|
* @param array $matchConditions
|
|
* @param string $mode
|
|
* @param array $context
|
|
* @return array Migration data
|
|
* @throws InvalidMatchConditionsException
|
|
* @throws \Exception
|
|
*/
|
|
public function generateMigration(array $matchConditions, $mode, array $context = array());
|
|
}
|