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

    use BBE\Customizer\Base as Base;
    
    if( ! class_exists( __NAMESPACE__ . '\\Dimension' ) ) {
        /**
         * Dimension Class
         */
        class Dimension extends Base {
            /**
             * Type of control
             * 
             * @since 1.0.0
             * @var string
             */
            public $type = 'dimension';
            
            /**
             * Sides to exclude
             * 
             * @since 1.0.0
             * @var array
             */
            public $exclude = [];

            /**
             * Whether the control should be responsive or not
             * 
             * @since 1.0.0
             * @var bool
             */
            public $responsive = false;

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

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