HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/wpforms-lite/src/Integrations/Divi/Traits/LocalizedDataTrait.php
<?php

namespace WPForms\Integrations\Divi\Traits;

/**
 * Trait for managing localized data for Divi modules.
 *
 * @since 1.9.9
 */
trait LocalizedDataTrait {

	/**
	 * Localized data storage.
	 *
	 * @since 1.9.9
	 *
	 * @var array
	 */
	protected $localized_data = [];

	/**
	 * Get the localized data.
	 *
	 * @since 1.9.9
	 *
	 * @return array Localized data array.
	 */
	public function get_localized_data(): array {

		return $this->localized_data;
	}

	/**
	 * Set the localized data.
	 *
	 * @since 1.9.9
	 *
	 * @param array $script_data Localized data to set.
	 *
	 * @return self Returns the instance for method chaining.
	 */
	public function set_localized_data( array $script_data ): object {

		$this->localized_data = $script_data;

		return $this;
	}
}