<?php
    /**
     * Responsive builder customzer custom control
     * 
     * @package Blog Bee
     * @since 1.0.0
     */
    namespace BBE\Customizer\Controls;

    use BBE\Customizer\Base as Base;
    
    if( ! class_exists( __NAMESPACE__ . '\\Responsive_Builder' ) ) {
         /**
         * Responsive Builder Class
         */
        class Responsive_Builder extends Base {
            /**
             * Type of control
             * 
             * @var string
             * @since 1.0.0
             */
            public $type = 'bbe-responsive-builder';

            /**
             * Builder widgets
             * 
             * @var array
             * @since 1.0.0
             */
            public $widgets = [];

            /**
             * Row section ids
             * 
             * @var array
             * @since 1.0.0
             */
            public $row_section_ids = [];

            /**
             * To json
             * 
             * @since 1.0.0
             */
            public function to_json() {
                parent::to_json();
                $this->json[ 'widgets' ] = $this->widgets;
                $this->json[ 'row_section_ids' ] = $this->row_section_ids;
            }
        }
        Builder::set_control_type( 'bbe-responsive-builder' );
    }