HEX
Server: Apache/2.4.65 (Debian)
System: Linux wordpress-7cb4c6b6f6-js66c 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: www-data (33)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: //var/www/html/wp-content/plugins/elementor/modules/atomic-widgets/elements/element-builder.php
<?php

namespace Elementor\Modules\AtomicWidgets\Elements;

class Element_Builder {
	protected $element_type;
	protected $settings;
	protected $is_locked;

	public static function make( $element_type ) {
		return new self( $element_type );
	}

	private function __construct( $element_type ) {
		$this->element_type = $element_type;
	}

	public function settings( array $settings ) {
		$this->settings = $settings;
		return $this;
	}

	public function is_locked( $is_locked ) {
		$this->is_locked = $is_locked;
		return $this;
	}

	public function build() {
		return [
			'elType' => $this->element_type,
			'settings' => $this->settings,
			'isLocked' => $this->is_locked,
		];
	}
}