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\Nuke\Hooks; |
4 | |
5 | interface NukeGetNewPagesHook { |
6 | |
7 | /** |
8 | * Hook runner for the `NukeGetNewPages` hook |
9 | * |
10 | * After searching for pages to delete. Can be used to add and remove pages. |
11 | * |
12 | * @param string $username username filter applied |
13 | * @param ?string $pattern pattern filter applied |
14 | * @param ?int $namespace namespace filter applied |
15 | * @param int $limit limit filter applied |
16 | * @param array &$pages page titles already retrieved |
17 | * @return bool|void True or no return value to continue or false to abort |
18 | */ |
19 | public function onNukeGetNewPages( |
20 | string $username, |
21 | ?string $pattern, |
22 | ?int $namespace, |
23 | int $limit, |
24 | array &$pages |
25 | ); |
26 | |
27 | } |