STRATO-apps/wordpress_03/app/wp-content/plugins/elementor/modules/variables/classes/variables.php

SHA-256: c20d10b627ce11c1fc4e2149e3a9e4b4b2e52e66ff01e082bb11ae6faa4c0d15
<?php

namespace Elementor\Modules\Variables\Classes;

use Elementor\Modules\Variables\Services\Variables_Service;
use Elementor\Modules\Variables\Storage\Repository as Variables_Repository;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Variables {
	private static $lookup = [];

	public static function init( Variables_Service $service ) {
		self::$lookup = $service->get_variables_list();
	}

	public static function by_id( string $id ) {
		return self::$lookup[ $id ] ?? null;
	}
}