<?php
/**
 * Customizer Basic Control.
 *
 * @package Blogbuster
 */

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

/**
 * Create a extend control with custom params.
 * This control allows you to add responsive settings.
 */
class Blogbuster_Customize_Control extends WP_Customize_Control {

	/**
     * Whitelisting the "required" argument.
     *
     * @since 1.0.0
     * @var array
     */
    public $required = array();

	/**
     * Refresh the parameters passed to the JavaScript via JSON.
     *
     * @see WP_Customize_Control::to_json()
     * @since 1.0.0
     */
	public function to_json() {
		parent::to_json();

		$this->json['required'] = $this->required;
	}
}