<?php
    /**
     * Info Box customizer custom control
     * 
     * @package Blog Bee Pro
     * @since 1.0.0
     */
    namespace BBE\Customizer\Controls;

    use BBE\Customizer\Base as Base;
    
    if( ! class_exists( __NAMESPACE__ . '\\InfoBox' ) ) {
        /**
         * Info Box Class
         */
        class InfoBox extends Base {
            /**
             * Type of control
             * 
             * @since 1.0.0
             */
            public $type = 'info-box';

            /**
             * Choices to display as buttons
             * 
             * @since 1.0.0
             * @var array
             */
            public $choices = [];

            /**
             * To json
             * 
             * @since 1.0.0
             */
            public function to_json() {
                parent::to_json();
                $this->json[ 'choices' ] = $this->choices;
            }
        }
        InfoBox::set_control_type( 'info-box' );
    }