| 1 |
<?php |
| 2 |
|
| 3 |
// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure. |
| 4 |
namespace Yoast\WP\SEO\Editors\Domain\Integrations; |
| 5 |
|
| 6 |
/** |
| 7 |
* Describes the interface for integration domain objects which can be enabled or not |
| 8 |
*/ |
| 9 |
interface Integration_Data_Provider_Interface { |
| 10 |
|
| 11 |
/** |
| 12 |
* If the integration is activated. |
| 13 |
* |
| 14 |
* @return bool If the integration is activated. |
| 15 |
*/ |
| 16 |
public function is_enabled(): bool; |
| 17 |
|
| 18 |
/** |
| 19 |
* Return this object represented by a key value array. |
| 20 |
* |
| 21 |
* @return array<string, bool> Returns the name and if the feature is enabled. |
| 22 |
*/ |
| 23 |
public function to_array(): array; |
| 24 |
|
| 25 |
/** |
| 26 |
* Returns this object represented by a key value structure that is compliant with the script data array. |
| 27 |
* |
| 28 |
* @return array<string, bool> Returns the legacy key and if the feature is enabled. |
| 29 |
*/ |
| 30 |
public function to_legacy_array(): array; |
| 31 |
} |
| 32 |
|