| 1 |
<?php |
| 2 |
namespace ABlocks\Frontend\DynamicContent\Interpreters\Abstracts; |
| 3 |
|
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
abstract class Interpreter { |
| 8 |
protected string $name; |
| 9 |
protected array $setting; |
| 10 |
protected string $content = ''; |
| 11 |
protected bool $is_richtext; |
| 12 |
|
| 13 |
public function __construct( string $name, array $setting, bool $is_richtext = false ) { |
| 14 |
$this->name = $name; |
| 15 |
$this->setting = $setting; |
| 16 |
$this->is_richtext = $is_richtext; |
| 17 |
} |
| 18 |
abstract public function content() : string; |
| 19 |
} |
| 20 |
|