<?php
/**
 * @package     woobooking.Platform
 * @subpackage  Form
 *
 *  Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE
 */
namespace WpBookingPro\Form\fields;
defined('_WPBOOKINGPRO_EXEC') or die;
use WpBookingPro\Form\FormField;
use WpBookingPro\Html\WpBookingProHtmlBackend;
use WpBookingPro\Language\Text;

/**
 * Form Field class for the woobooking Platform.
 * Supports a one line text field.
 *
 * @link   http://www.w3.org/TR/html-markup/input.text.html#input.text

 */
class WpBookingPro_FormFieldclosedate extends FormField
{
    /**
     * The form field type.
     *
     * @var    string
     */
    protected $type = 'closedate';
    /**
     * Name of the layout being used to render the field
     *
     * @var    string
     */
    protected $layout = 'WooBooking.form.field.closedate.closedate';

    protected function getLayoutData()
    {
        $data = parent::getLayoutData();

        $extraData = array(
            'name_close_date'   => $this->element['name_close_date']
        );

        return array_merge($data, $extraData);
    }
}
