src/Database/Migration.php
/**
	 * Executes the `up` or `down` method according to the direction on the given migrator.
	 *
	 * @param Migrator $migrator
	 * @return void
	 */
Executes the `up` or `down` method according to the direction on the given migrator.
@param Migrator $migrator
@return void
Executes the ` up ` or ` down ` method according to the direction on the given migrator . @param Migrator $migrator @return void
private function executeDirectionMethod(Migrator $migrator) {
		switch ($migrator->direction) {
			case Migrator::DIRECTION_DOWN: return $this->down();
			case Migrator::DIRECTION_UP: return $this->up();
			default: throw new Exception("Unknown direction {$migrator->direction}");
		}
	}
private function executeDirectionMethod ( Migrator $ migrator ) { switch ( $ migrator -> direction ) { case Migrator :: DIRECTION_DOWN : return $ this -> down ( ) ; case Migrator :: DIRECTION_UP : return $ this -> up ( ) ; default : throw new Exception ( " Unknown direction  { $ migrator -> direction } " ) ; } }
Executes the `up` or `down` method according to the direction on the given migrator.
Executes the ` up ` or ` down ` method according to the direction on the given migrator .