| 1 |
<?php |
| 2 |
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure. |
| 3 |
namespace Yoast\WP\SEO\Schema_Aggregator\Domain\Enhancement; |
| 4 |
|
| 5 |
interface Enhancement_Config_Interface { |
| 6 |
|
| 7 |
/** |
| 8 |
* Get configuration value |
| 9 |
* |
| 10 |
* @param string $key Configuration key. |
| 11 |
* @param string|int|bool $the_default Default value. |
| 12 |
* |
| 13 |
* @return string|int|bool Configuration value. |
| 14 |
*/ |
| 15 |
public function get_config_value( string $key, $the_default ); |
| 16 |
|
| 17 |
/** |
| 18 |
* Check if enhancement is enabled |
| 19 |
* |
| 20 |
* @param string $enhancement Enhancement name (e.g., 'article_body', 'keywords'). |
| 21 |
* |
| 22 |
* @return bool True if enabled. |
| 23 |
*/ |
| 24 |
public function is_enhancement_enabled( string $enhancement ): bool; |
| 25 |
} |
| 26 |
|