<?php
/**
 * File Path: includes/migrations/class-mbs-migration-1-5.php
 *
 * MBS_Migration_1_5 — Reset legacy section order option
 *
 * Delete the legacy mbs_setting_formatting_section_order option.
 *
 * @package MyBookShowroom
 * @since   3.2.0
 */

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

/**
 * Class MBS_Migration_1_5
 *
 * Delete the legacy mbs_setting_formatting_section_order option.
 *
 * @implements MBS_Migration
 */
class MBS_Migration_1_5 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.5';
	}

	/**
	 * {@inheritdoc}
	 *
	 * Delete the legacy mbs_setting_formatting_section_order option.
	 *
	 * @return void
	 */
	public function up(): void {
		delete_option( 'mbs_setting_formatting_section_order' );
	}
}
