24 lines
435 B
PHP
24 lines
435 B
PHP
<?php
|
|
namespace Elementor\Modules\AtomicWidgets\Base;
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit; // Exit if accessed directly.
|
|
}
|
|
|
|
abstract class Style_Transformer_Base {
|
|
/**
|
|
* Get the transformer type.
|
|
*
|
|
* @return string
|
|
*/
|
|
abstract public static function type(): string;
|
|
|
|
/**
|
|
* Transform the value.
|
|
*
|
|
* @param mixed $value
|
|
*
|
|
* @return mixed
|
|
*/
|
|
abstract public function transform( $value, callable $transform );
|
|
}
|