extra['o'] = $oldVersion; $this->extra['n'] = $newVersion; } /** * Checks if the database update was successful. * @return bool */ public function isSuccessful(): bool { //We dont save unsuccessful updates now, so just assume it to save space. return $this->extra['s'] ?? true; } /** * Gets the database version before update. * @return int */ public function getOldVersion(): string { return (string) $this->extra['o']; } /** * Gets the (target) database version after update. * @return int */ public function getNewVersion(): string { return (string) $this->extra['n']; } }