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