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 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15 */
16
17namespace ORES\Storage;
18
19use RuntimeException;
20use Wikimedia\Rdbms\IResultWrapper;
21
22/**
23 * Service interface for retrieving score data from storage.
24 *
25 * @license GPL-3.0-or-later
26 */
27interface StorageScoreLookup {
28
29    /**
30     * Method to retrieve scores of given revision and models from storage
31     *
32     * @param int|int[] $revisions Single or multiple revision IDs
33     * @param string|string[]|null $models Single or multiple model names. If
34     * left empty, all configured models are queried.
35     *
36     * @return IResultWrapper
37     * @throws RuntimeException
38     */
39    public function getScores( $revisions, $models );
40
41}