Newer
Older
use Breyta\Model\Migration;
use Breyta\Model\Statement;
interface ProgressInterface
{
/**
* Output information about starting the migration process
*
* Info contains:
* - `migrations` - an array of Breyta\Model\Migration
* - `task` - the task that is going to be executed (migrate or revert)
* - `count` - an integer how many migrations are going to be executed
* - `toExecute` - an array of migrations that are going to be executed
*
* @param \stdClass $info
*/
public function start(\stdClass $info);
/**
* Output information about the $migration (before the migration)
public function beforeMigration(Migration $migration);
/**
* Output information about the $statement (before it gets executed)
* @param Statement $statement
public function beforeExecution(Statement $statement);
/**
* Output information about the $statement (after it gets executed)
* @param Statement $statement
public function afterExecution(Statement $statement);
/**
* Output information about the $migration (after the migration)
public function afterMigration(Migration $migration);
/**
* Output information about what just happened
*
* Info contains:
* - `migrations` - an array of Breyta\Model\Migration
* - `task` - the task that is going to be executed (migrate or revert)
* - `count` - an integer how many migrations are going to be executed
* - `executed` - an array of migrations that just got executed
*/
public function finish(\stdClass $info);