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

    use BBE\Customizer\Base as Base;
    
    if( ! class_exists( __NAMESPACE__ . '\\Border' ) ) {
        /**
         * Border Class
         */
        class Border extends Base {
            /**
             * Type of control
             * 
             * @since 1.0.0
             */
            public $type = 'border';

            /**
             * Is this control responsive
             * 
             * @since 1.0.0
             * @var array
             */
            public $input_attrs = [];

            /**
             * Fields to exclude
             * 
             * @since 1.0.0
             * @var array
             */
            public $exclude = [];

            /**
             * Color types
             * 
             * @since 1.0.0
             * @var array
             */
            public $color_types = [ 'solid' ];

            /**
             * To json
             * 
             * @since 1.0.0
             */
            public function to_json() {
                parent::to_json();
                $this->json[ 'input_attrs' ] = $this->input_attrs;
                $this->json[ 'exclude' ] = $this->exclude;
                $this->json[ 'color_types' ] = $this->color_types;
            }
        }
        Border::set_control_type( 'border' );
    }