<?php
/**
 * File Path: includes/migrations/class-mbs-migration-1-8.php
 *
 * MBS_Migration_1_8 — Remove orphaned mbs_setting_general_locale option
 *
 * Delete the orphaned mbs_setting_general_locale wp_options row.
 *
 * @package MyBookShowroom
 * @since   3.2.0
 */

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

/**
 * Class MBS_Migration_1_8
 *
 * Delete the orphaned mbs_setting_general_locale wp_options row.
 *
 * @implements MBS_Migration
 */
class MBS_Migration_1_8 implements MBS_Migration { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- mbs_/MBS_ prefix is correct; scanner not configured with plugin prefix

	/**
	 * {@inheritdoc}
	 *
	 * @return string
	 */
	public function version(): string {
		return '1.8';
	}

	/**
	 * {@inheritdoc}
	 *
	 * Delete the orphaned mbs_setting_general_locale wp_options row.
	 *
	 * @return void
	 */
	public function up(): void {
		delete_option( 'mbs_setting_general_locale' );
	}
}
