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 * What a report handler serves, declared before it runs.
4 *
5 * @package automattic/jetpack-woocommerce-stats
6 */
7
8namespace Automattic\Jetpack\WooCommerceStats\Report_Execution;
9
10/**
11 * Implemented by a `Report_Handler` that serves less than every field and param. One that
12 * doesn't implement it serves everything.
13 *
14 * @internal Not a stable contract yet: the signature changes in the next steps.
15 *
16 * @since 0.4.0
17 */
18interface Report_Capability {
19
20    /**
21     * What the handler serves. A forced provider whose handler covers less is refused.
22     *
23     * @return array{fields: string[]|string, params: string[]|string} Summary fields and query params, each a list or `*` for all.
24     */
25    public function get_capability();
26}