Align "What's this" vertically
[lhc/web/wiklou.git] / includes / libs / stats / MediawikiStatsdDataFactory.php
1 <?php
2 use Liuggio\StatsdClient\Entity\StatsdData;
3 use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
4
5 /**
6 * Mediawiki adaptation of Statsd data factory.
7 */
8 interface MediawikiStatsdDataFactory extends StatsdDataFactoryInterface {
9 /**
10 * Check whether this data factory has any data.
11 * @return boolean
12 */
13 public function hasData();
14
15 /**
16 * Return data from the factory.
17 * @return StatsdData[]
18 */
19 public function getData();
20
21 /**
22 * Set collection enable status.
23 * @param bool $enabled Will collection be enabled?
24 * @return void
25 */
26 public function setEnabled( $enabled );
27
28 }