X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flibs%2Fstats%2FNullStatsdDataFactory.php;h=63de8f2f63f46576f1094bbce1dddde496eb4a2b;hp=ed16311929916e69ba5103db915ae6ff70df6698;hb=7babd362babcbf7f20adb8e12edb4f4bc1d4249f;hpb=5fa4cdf860c79b32ab6ef034c6d9420c2727f695 diff --git a/includes/libs/stats/NullStatsdDataFactory.php b/includes/libs/stats/NullStatsdDataFactory.php index ed16311929..63de8f2f63 100644 --- a/includes/libs/stats/NullStatsdDataFactory.php +++ b/includes/libs/stats/NullStatsdDataFactory.php @@ -105,27 +105,22 @@ class NullStatsdDataFactory implements IBufferingStatsdDataFactory { return $data; } - /** - * Check whether this data factory has any data. - * @return bool - */ public function hasData() { return false; } - /** - * Return data from the factory. - * @return StatsdData[] - */ public function getData() { return []; } - /** - * Set collection enable status. - * @param bool $enabled Will collection be enabled? - * @return void - */ + public function clearData() { + // Nothing to do, always empty + } + + public function getDataCount() { + return 0; + } + public function setEnabled( $enabled ) { // Nothing to do, null factory is always disabled. }