| 1 |
<?php |
| 2 |
/** |
| 3 |
* Report abstract class |
| 4 |
* |
| 5 |
* @since 4.4.0 |
| 6 |
* @package elasticpress |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace ElasticPress\StatusReport; |
| 10 |
|
| 11 |
defined( 'ABSPATH' ) || exit; |
| 12 |
|
| 13 |
/** |
| 14 |
* Report class |
| 15 |
* |
| 16 |
* @package ElasticPress |
| 17 |
*/ |
| 18 |
abstract class Report { |
| 19 |
|
| 20 |
/** |
| 21 |
* Return the report title |
| 22 |
* |
| 23 |
* @return string |
| 24 |
*/ |
| 25 |
abstract public function get_title(): string; |
| 26 |
|
| 27 |
/** |
| 28 |
* Return the report group(s) of fields |
| 29 |
* |
| 30 |
* @return array |
| 31 |
*/ |
| 32 |
abstract public function get_groups(): array; |
| 33 |
|
| 34 |
/** |
| 35 |
* Return any actions related to the report, like a button |
| 36 |
* |
| 37 |
* @return string |
| 38 |
*/ |
| 39 |
public function get_actions(): array { |
| 40 |
return []; |
| 41 |
} |
| 42 |
|
| 43 |
/** |
| 44 |
* Return the report messages. |
| 45 |
* |
| 46 |
* @return array |
| 47 |
* @since 4.5.0 |
| 48 |
*/ |
| 49 |
public function get_messages(): array { |
| 50 |
return []; |
| 51 |
} |
| 52 |
} |
| 53 |
|