Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
revealability
/
.tmb
/
plugins
/
elementor
/
modules
/
variables
/
classes
:
variable-types-registry.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Elementor\Modules\Variables\Classes; use Elementor\Modules\AtomicWidgets\PropTypes\Contracts\Transformable_Prop_Type; use InvalidArgumentException; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } class Variable_Types_Registry { private array $types = []; public function register( string $key, Transformable_Prop_Type $prop_type ): void { $this->types[ $key ] = $prop_type; } public function get( $key ) { return $this->types[ $key ] ?? null; } public function all(): array { return $this->types; } }