PluginProbe
ElasticPress / 5.3.5
ElasticPress v5.3.5
5.3.5 5.3.4 3.6.5 3.6.6 4.0.0 4.0.1 4.1.0 4.2.0 4.2.1 4.2.2 4.3.0 4.3.1 4.4.0 4.4.1 4.5.0 4.5.1 4.5.2 4.6.0 4.6.1 4.7.0 4.7.1 4.7.2 5.0.0 5.0.1 5.0.2 All 108 releases
elasticpress / includes / classes / StatusReport / Report.php

Report.php in ElasticPress 5.3.5, at includes/classes/StatusReport/Report.php

53 lines 750 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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