<?php
/**
 * AbstractDatabaseUpgrade.php.
 *
 * @package RewardsWP
 */

namespace Awesomemotive\Rewardswp\Abstracts;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Base abstraction for database upgrades/migrations.
 */
abstract class AbstractDatabaseUpgrade {
	/**
	 * The version this upgrade belongs to.
	 *
	 * @var string
	 */
	protected string $version;

	/**
	 * Get the version this upgrade belongs to.
	 *
	 * @return string
	 */
	public function get_version(): string {
		return $this->version;
	}

	/**
	 * Run the upgrade.
	 *
	 * @return void
	 */
	abstract public function up(): void;
}
