| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\Mcp\Abilities\Appliers\V3\Serializer; |
| 4 |
|
| 5 |
if ( ! defined( 'ABSPATH' ) ) { |
| 6 |
exit; |
| 7 |
} |
| 8 |
|
| 9 |
/** |
| 10 |
* Inverse of {@see \Elementor\Modules\Mcp\Abilities\Appliers\V3\Converter\V3_Property_Converter}: |
| 11 |
* reads V3 legacy settings and emits CSS declarations into a {@see V3_Block_Accumulator} |
| 12 |
* grouped by breakpoint / pseudo-state. |
| 13 |
* |
| 14 |
* Each serializer owns a single override shape (typography_prefix, border_prefix, |
| 15 |
* box_shadow_prefix, setting+resolver, or generic index fallback). |
| 16 |
*/ |
| 17 |
interface V3_Property_Serializer { |
| 18 |
|
| 19 |
public function is_supported( array $entry, string $property, ?string $state ): bool; |
| 20 |
|
| 21 |
public function emit( V3_Block_Accumulator $blocks, array $settings, array $entry, string $property, ?string $state ): void; |
| 22 |
} |
| 23 |
|