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

    use BBE\Customizer\Base as Base;
    
    if( ! class_exists( __NAMESPACE__ . '\\Toggle_Button_Group' ) ) {
         /**
         * Toggle Button Group Class
         */
        class Toggle_Button_Group extends Base {
            /**
             * Type of control
             * 
             * @since 1.0.0
             */
            public $type = 'toggle-button-group';

            /**
             * Control fields
             * 
             * @since 1.0.0
             */
            public $fields = [];

            /**
             * json
             * 
             * @since 1.0.0
             */
            public function to_json() {
                parent::to_json();
                $this->json[ 'fields' ] = $this->fields;
            }
        }
        Toggle_Button_Group::set_control_type( 'toggle-button-group' );
    }