Merge "registration: Only allow one extension to set a specific config setting"
[lhc/web/wiklou.git] / includes / libs / stats / IBufferingStatsdDataFactory.php
1 <?php
2 use Liuggio\StatsdClient\Entity\StatsdData;
3 use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
4
5 /**
6 * MediaWiki adaptation of StatsdDataFactory that provides buffering functionality.
7 *
8 * @see BufferingStatsdDataFactory
9 */
10 interface IBufferingStatsdDataFactory extends StatsdDataFactoryInterface {
11 /**
12 * Check whether this data factory has any data.
13 * @return bool
14 */
15 public function hasData();
16
17 /**
18 * Return data from the factory.
19 * @return StatsdData[]
20 */
21 public function getData();
22
23 /**
24 * Set collection enable status.
25 * @param bool $enabled Will collection be enabled?
26 * @return void
27 */
28 public function setEnabled( $enabled );
29
30 }