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

    use BBE\Customizer\Base as Base;
    
    if( ! class_exists( __NAMESPACE__ . '\\Builder_Layout' ) ) {
        /**
         * Builder Layout Class
         */
        class Builder_Layout extends Base {
            /**
             * Type of control
             * 
             * @since 1.0.0
             */
            public $type = 'builder-layout';

            /**
             * Builder id
             * 
             * @since 1.0.0
             */
            public $builder_id = '';

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

            /**
             * Field values
             * 
             * @since 1.0.0
             */
            public $field_values = [];

            /**
             * json
             * 
             * @since 1.0.0
             */
            public function to_json() {
                parent::to_json();
                $this->json[ 'fields' ] = $this->fields;
                $this->json[ 'builder_id' ] = $this->builder_id;
                $this->json[ 'field_values' ] = $this->field_values;
            }
        }
        Builder_Layout::set_control_type( 'builder-layout' );
    }