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
2declare( strict_types=1 );
3
4namespace MediaWiki\Extension\MediaModeration\PeriodicMetrics;
5
6/**
7 * Represents a metric that can be calculated at any time.
8 * Copied, with modification, from GrowthExperiments includes/PeriodicMetrics/IMetric.php
9 */
10interface IMetric {
11    /**
12     * Calculate the value of the metric.
13     *
14     * @return int
15     */
16    public function calculate(): int;
17
18    /**
19     * Gets the name of the metric.
20     *
21     * @return string
22     */
23    public function getName(): string;
24}