mirror of
https://github.com/jbcr/ezmigrationbundle.git
synced 2026-03-26 17:52:18 +01:00
21 lines
541 B
PHP
21 lines
541 B
PHP
<?php
|
|
|
|
namespace Kaliop\eZMigrationBundle\API;
|
|
|
|
/**
|
|
* 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 $matchCondition
|
|
* @param string $mode
|
|
* @param array $context
|
|
* @return array Migration data
|
|
* @throws \Exception
|
|
*/
|
|
public function generateMigration(array $matchCondition, $mode, array $context = array());
|
|
}
|