| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\AtomicWidgets\CssConverter; |
| 4 |
|
| 5 |
if ( ! defined( 'ABSPATH' ) ) { |
| 6 |
exit; // Exit if accessed directly. |
| 7 |
} |
| 8 |
|
| 9 |
interface Property_Converter { |
| 10 |
/** |
| 11 |
* @param array{property: string, value: string} $rule A single parsed CSS declaration. |
| 12 |
*/ |
| 13 |
public function is_supported( array $rule ): bool; |
| 14 |
|
| 15 |
/** |
| 16 |
* Mutates the shared context and returns whether the rule was converted. |
| 17 |
* |
| 18 |
* @param Conversion_Context $context The shared mutable conversion context. |
| 19 |
* @param array{property: string, value: string} $rule A single parsed CSS declaration. |
| 20 |
*/ |
| 21 |
public function convert( Conversion_Context $context, array $rule ): bool; |
| 22 |
} |
| 23 |
|