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, ]; } }