| 1 |
<?php |
| 2 |
namespace Elementor\Modules\Home\Transformations\Base; |
| 3 |
|
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; // Exit if accessed directly |
| 6 |
} |
| 7 |
|
| 8 |
abstract class Transformations_Abstract { |
| 9 |
|
| 10 |
protected $wordpress_adapter; |
| 11 |
protected $plugin_status_adapter; |
| 12 |
|
| 13 |
public function __construct( $args ) { |
| 14 |
$this->wordpress_adapter = $args['wordpress_adapter'] ?? null; |
| 15 |
$this->plugin_status_adapter = $args['plugin_status_adapter'] ?? null; |
| 16 |
} |
| 17 |
|
| 18 |
abstract public function transform( array $home_screen_data ): array; |
| 19 |
} |
| 20 |
|