HEX
Server: Apache/2.4.66 (Debian)
System: Linux 6dfabc3b2241 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
User: (1000)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/wp-migrate-db/class/Common/MigrationState/StateDataContainer.php
<?php

namespace DeliciousBrains\WPMDB\Common\MigrationState;

use DeliciousBrains\WPMDB\Common\Util\Singleton;

/**
 * Class StateDataContainer
 *
 * Singleton class to store `$this->state_data` usage throughout codebase
 *
 * Generally, state_data is set in MigrationStateManager::set_post_data();
 *
 * @TODO In future, refactor usage of state_data globally
 *
 * @package DeliciousBrains\WPMDB\Common\MigrationState
 */
class StateDataContainer {
	use Singleton;

	public $state_data = [];
	public $migration_state_manager;

	public function __construct( ) { }

	public function setData( $data ) {
		$this->state_data = $data;
	}

	public function getData() {
		return $this->state_data;
	}
}