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 | use Liuggio\StatsdClient\Entity\StatsdData; |
4 | use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface; |
5 | |
6 | /** |
7 | * MediaWiki adaptation of StatsdDataFactory that provides buffering functionality. |
8 | * |
9 | * @stable to implement |
10 | * @since 1.30 |
11 | * @see BufferingStatsdDataFactory |
12 | */ |
13 | interface IBufferingStatsdDataFactory extends StatsdDataFactoryInterface { |
14 | /** |
15 | * Check whether this data factory has any buffered data. |
16 | * @return bool |
17 | */ |
18 | public function hasData(); |
19 | |
20 | /** |
21 | * Return the buffered data from the factory. |
22 | * @return StatsdData[] |
23 | */ |
24 | public function getData(); |
25 | |
26 | /** |
27 | * Clear all buffered data from the factory |
28 | * @since 1.31 |
29 | */ |
30 | public function clearData(); |
31 | |
32 | /** |
33 | * Return the number of buffered statsd data entries |
34 | * @return int |
35 | * @since 1.31 |
36 | */ |
37 | public function getDataCount(); |
38 | |
39 | /** |
40 | * Set collection enable status. |
41 | * @param bool $enabled Will collection be enabled? |
42 | * @return void |
43 | */ |
44 | public function setEnabled( $enabled ); |
45 | } |