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

use Elementor\Modules\Library\Documents\Library_Document;

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

/**
 * Elementor Atomic Form library document.
 *
 * Elementor atomic form library document handler class is responsible for
 * handling a document of an atomic form type.
 *
 * @since 3.29.0
 */
class Atomic_Form extends Library_Document {

	public static function get_properties() {
		$properties = parent::get_properties();

		$properties['support_kit'] = true;

		return $properties;
	}

	/**
	 * Get document name.
	 *
	 * Retrieve the document name.
	 *
	 * @since 2.0.0
	 * @access public
	 *
	 * @return string Document name.
	 */
	public function get_name() {
		return 'e-form';
	}

	/**
	 * Get document title.
	 *
	 * Retrieve the document title.
	 *
	 * @since 2.0.0
	 * @access public
	 * @static
	 *
	 * @return string Document title.
	 */
	public static function get_title() {
		return esc_html__( 'Atomic Form', 'elementor' );
	}

	/**
	 * Get Type
	 *
	 * Return the atomic form document type.
	 *
	 * @return string
	 */
	public static function get_type() {
		return 'e-form';
	}
}
