/**
* Returns next Migration that is higher than $currentVersion
*
* @param int $currentVersion
*
* @return AbstractMigration|null
*/
public function getNextMigrationForVersion($currentVersion) { $migrations =
$this->
getMigrationsForVersion($currentVersion, 1
);
if (empty($migrations)) { return null;
} return array_shift($migrations);
} /**
* Return an array of Migrations that have a higher version than $currentVersion
* The array is indexed by Version
*
* @param int $currentVersion
* @param int $limit
*
* @throws Exception
*
* @return array
*/