| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\AtomicWidgets\CssConverter\Metrics; |
| 4 |
|
| 5 |
if ( ! defined( 'ABSPATH' ) ) { |
| 6 |
exit; // Exit if accessed directly. |
| 7 |
} |
| 8 |
|
| 9 |
interface Conversion_Failure_Reporter { |
| 10 |
const CATEGORY_EXCEPTION = 'exception'; |
| 11 |
const CATEGORY_NULL_RETURN = 'null_return'; |
| 12 |
|
| 13 |
/** |
| 14 |
* @param string $property The CSS property that failed to convert. |
| 15 |
* @param string $category One of the CATEGORY_* constants. |
| 16 |
* @param array $context Sanitized reproduction context, free of user content. |
| 17 |
*/ |
| 18 |
public function report( string $property, string $category, array $context ): void; |
| 19 |
} |
| 20 |
|