Skip to content

Instantly share code, notes, and snippets.

@brianium
Created March 28, 2017 19:01
Show Gist options
  • Save brianium/718020b707e3f2bc339ae8fe6bc7cce7 to your computer and use it in GitHub Desktop.
Save brianium/718020b707e3f2bc339ae8fe6bc7cce7 to your computer and use it in GitHub Desktop.
Provides an interface that can be implemented by a custom Phinx migration manager
<?php
interface MigratorInterface
{
/**
* Migrate the specified environment to a version. Migrates up if the version is null
*
* @param string $environment
* @param string $version
* @return mixed
*/
public function migrate($environment, $version = null);
/**
* Get the buffered output of a migration operation
*
* @return string
*/
public function getBufferedOutput();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment