Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
FlushUtterancesByExpirationDateOnFileJob | |
0.00% |
0 / 4 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
run | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Wikispeech\Utterance; |
4 | |
5 | /** |
6 | * @file |
7 | * @ingroup Extensions |
8 | * @license GPL-2.0-or-later |
9 | */ |
10 | |
11 | use Job; |
12 | use Title; |
13 | |
14 | /** |
15 | * @since 0.1.7 |
16 | */ |
17 | class FlushUtterancesByExpirationDateOnFileJob extends Job { |
18 | |
19 | /** |
20 | * @since 0.1.8 |
21 | * @param Title $title |
22 | * @param array|null $params Ignored |
23 | */ |
24 | public function __construct( $title, $params ) { |
25 | parent::__construct( 'flushUtterancesByExpirationDateOnFile', $title, $params ); |
26 | } |
27 | |
28 | /** |
29 | * @since 0.1.7 |
30 | * @return bool success |
31 | */ |
32 | public function run() { |
33 | $utteranceStore = new UtteranceStore(); |
34 | $utteranceStore->flushUtterancesByExpirationDateOnFile(); |
35 | return true; |
36 | } |
37 | |
38 | } |