/var/www/html_de/wp-content/plugins/elementor/modules/atomic-widgets/elements/element-builder.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php

namespace Elementor\Modules\AtomicWidgets\Elements;

class 
Element_Builder {
    protected 
$element_type;
    protected 
$settings;
    protected 
$is_locked;

    public static function 
make$element_type ) {
        return new 
self$element_type );
    }

    private function 
__construct$element_type ) {
        
$this->element_type $element_type;
    }

    public function 
settings( array $settings ) {
        
$this->settings $settings;
        return 
$this;
    }

    public function 
is_locked$is_locked ) {
        
$this->is_locked $is_locked;
        return 
$this;
    }

    public function 
build() {
        return [
            
'elType' => $this->element_type,
            
'settings' => $this->settings,
            
'isLocked' => $this->is_locked,
        ];
    }
}