Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | /** |
| 3 | * A source of report data: the readiness every handler under it shares. |
| 4 | * |
| 5 | * @package automattic/jetpack-woocommerce-stats |
| 6 | */ |
| 7 | |
| 8 | namespace Automattic\Jetpack\WooCommerceStats\Report_Execution; |
| 9 | |
| 10 | use WP_Error; |
| 11 | |
| 12 | /** |
| 13 | * A source of report data, registered under the name the `provider` param uses. |
| 14 | * |
| 15 | * @internal Not a stable contract yet: the signature changes in the next steps. |
| 16 | * |
| 17 | * @since 0.3.3 |
| 18 | */ |
| 19 | interface Report_Provider { |
| 20 | |
| 21 | /** |
| 22 | * Whether the provider can serve anything now, such as the connection for `wpcom`. |
| 23 | * |
| 24 | * @return true|WP_Error A 503 error when it cannot. |
| 25 | */ |
| 26 | public function check_ready(); |
| 27 | } |