Follows-up I2874175647e (7fdc3d09a3).
* Avoid "MediaWiki" in class names. If unavoidable, always camelcase.
* Use a more descriptive name, matching the implementing the class ("Buffering").
* Use "I" prefix for consistency with other MediaWiki-provided interfaces.
(Avoid "Interface" suffix, which is foreign to MediaWiki and is only used
in the StatsdClient namespace, which this interface is not in).
Bug: T166354
Change-Id: I06de59122625f9c23e7c1a1bfa69a7ddabbf379e
30 lines
682 B
PHP
30 lines
682 B
PHP
<?php
|
|
use Liuggio\StatsdClient\Entity\StatsdData;
|
|
use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface;
|
|
|
|
/**
|
|
* MediaWiki adaptation of StatsdDataFactory that provides buffering functionality.
|
|
*
|
|
* @see BufferingStatsdDataFactory
|
|
*/
|
|
interface IBufferingStatsdDataFactory extends StatsdDataFactoryInterface {
|
|
/**
|
|
* Check whether this data factory has any data.
|
|
* @return boolean
|
|
*/
|
|
public function hasData();
|
|
|
|
/**
|
|
* Return data from the factory.
|
|
* @return StatsdData[]
|
|
*/
|
|
public function getData();
|
|
|
|
/**
|
|
* Set collection enable status.
|
|
* @param bool $enabled Will collection be enabled?
|
|
* @return void
|
|
*/
|
|
public function setEnabled( $enabled );
|
|
|
|
}
|