if ($migration === null
) { return new FinishResult($offset,
$totalCount);
} try { $this->migrationManager->
apply($migration, AbstractMigration::MODUS_UPDATE
);
} catch (Exception
$e) { $reflection =
new ReflectionClass(\
get_class($migration));
$classFile =
$reflection->
getFileName();
return new ErrorResult($e->
getMessage(),
$e,
[ 'deltaFile' =>
$classFile,
'deltaVersion' =>
$migration->
getVersion(),
'deltaLabel' =>
$migration->
getLabel(),
]);
} return new ValidResult($offset + 1,
$totalCount,
[ 'deltaVersion' =>
$migration->
getVersion(),
'deltaLabel' =>
$migration->
getLabel(),
]);
}}