| 1 |
<?php |
| 2 |
namespace Elementor\Modules\AtomicWidgets\Base; |
| 3 |
|
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; // Exit if accessed directly. |
| 6 |
} |
| 7 |
|
| 8 |
abstract class Style_Transformer_Base { |
| 9 |
/** |
| 10 |
* Get the transformer type. |
| 11 |
* |
| 12 |
* @return string |
| 13 |
*/ |
| 14 |
abstract public static function type(): string; |
| 15 |
|
| 16 |
/** |
| 17 |
* Transform the value. |
| 18 |
* |
| 19 |
* @param mixed $value |
| 20 |
* |
| 21 |
* @return mixed |
| 22 |
*/ |
| 23 |
abstract public function transform( $value, callable $transform ); |
| 24 |
} |
| 25 |
|