| 1 |
<?php |
| 2 |
|
| 3 |
if (!defined('ABSPATH')) die('Access denied.'); |
| 4 |
|
| 5 |
if (!interface_exists('WP_Optimize_Dashboard_Interface')) : |
| 6 |
|
| 7 |
/** |
| 8 |
* Contract for all dashboard module data classes. |
| 9 |
* |
| 10 |
* Each implementation collects the data needed to render one module card. |
| 11 |
* The returned array must include it at minimum: bool $active Whether the module is enabled/running & string $label Human-readable module name (translated). |
| 12 |
*/ |
| 13 |
interface WP_Optimize_Dashboard_Interface { |
| 14 |
|
| 15 |
/** |
| 16 |
* Collects and returns the module's data payload. |
| 17 |
* |
| 18 |
* @return WpoDashboardCacheData|WpoDashboardImagesData|WpoDashboardMinifyData|WpoDashboardDatabaseData |
| 19 |
*/ |
| 20 |
public function collect(): array; |
| 21 |
} |
| 22 |
|
| 23 |
endif; |
| 24 |
|