![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/www/wp-content/plugins/elementor/modules/atomic-widgets/styles/ |
<?php namespace Elementor\Modules\AtomicWidgets\Styles; class Style_Variant { private ?string $breakpoint = null; private ?string $state = null; /** @var array<string, array> */ private array $props = []; public static function make(): self { return new self(); } public function set_breakpoint( string $breakpoint ): self { $this->breakpoint = $breakpoint; return $this; } public function set_state( string $state ): self { $this->state = $state; return $this; } public function add_prop( string $key, $value ): self { $this->props[ $key ] = $value; return $this; } public function build(): array { return [ 'meta' => [ 'breakpoint' => $this->breakpoint, 'state' => $this->state, ], 'props' => $this->props, ]; } }