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 ProofreadPage\Page; |
4 | |
5 | use MediaWiki\Title\Title; |
6 | |
7 | /** |
8 | * @license GPL-2.0-or-later |
9 | * |
10 | * Allows to retrieve the quality level for a Page: page |
11 | */ |
12 | interface PageQualityLevelLookup { |
13 | |
14 | /** |
15 | * Check if the quality of the given page is already cached |
16 | * @param Title $pageTitle |
17 | * @return bool |
18 | */ |
19 | public function isPageTitleInCache( Title $pageTitle ): bool; |
20 | |
21 | /** |
22 | * Flush the cache for a page |
23 | * |
24 | * This should be done after the page quality is updated. |
25 | * @param Title $pageTitle |
26 | */ |
27 | public function flushCacheForPage( Title $pageTitle ); |
28 | |
29 | /** |
30 | * @param Title $pageTitle |
31 | * @return int|null |
32 | */ |
33 | public function getQualityLevelForPageTitle( Title $pageTitle ); |
34 | |
35 | /** |
36 | * @param Title[] $pageTitles |
37 | */ |
38 | public function prefetchQualityLevelForTitles( array $pageTitles ); |
39 | } |