PHP 8.2.31
Preview: section.php Size: 1.27 KB
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/elementor/modules/atomic-widgets/controls/section.php

<?php
namespace Elementor\Modules\AtomicWidgets\Controls;

use JsonSerializable;

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

class Section implements JsonSerializable {
	private ?string $id = null;
	private $label = null;
	private $description = null;
	private array $items = [];

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

	public function set_id( string $id ): self {
		$this->id = $id;

		return $this;
	}

	public function get_id() {
		return $this->id;
	}

	public function set_label( string $label ): self {
		$this->label = html_entity_decode( $label );

		return $this;
	}

	public function get_label(): ?string {
		return $this->label;
	}

	public function set_description( string $description ): self {
		$this->description = html_entity_decode( $description );

		return $this;
	}

	public function set_items( array $items ): self {
		$this->items = $items;

		return $this;
	}

	public function add_item( $item ): self {
		$this->items[] = $item;

		return $this;
	}

	public function get_items() {
		return $this->items;
	}

	public function jsonSerialize(): array {
		return [
			'type' => 'section',
			'value' => [
				'label' => $this->label,
				'description' => $this->description,
				'items' => $this->items,
			],
		];
	}
}

Directory Contents

Dirs: 2 × Files: 1

Name Size Perms Modified Actions
base DIR
- drwxr-xr-x 2026-06-10 02:40:26
Edit Download
types DIR
- drwxr-xr-x 2026-06-10 02:40:26
Edit Download
1.27 KB lrw-r--r-- 2026-02-05 01:46:24
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).