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 | namespace MediaWiki\Extension\MediaModeration\PeriodicMetrics; |
4 | |
5 | /** |
6 | * Represents a metric that can be calculated at any time. |
7 | * Copied from GrowthExperiments includes/PeriodicMetrics/IMetric.php |
8 | */ |
9 | interface IMetric { |
10 | /** |
11 | * Calculate the value of the metric |
12 | * |
13 | * @return int |
14 | */ |
15 | public function calculate(): int; |
16 | |
17 | /** |
18 | * Get statsd key where the metric should be stored |
19 | * |
20 | * This is a per-wiki key. |
21 | * |
22 | * @return string |
23 | */ |
24 | public function getStatsdKey(): string; |
25 | } |