X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Flibs%2Fstats%2FNullStatsdDataFactory.php;h=63de8f2f63f46576f1094bbce1dddde496eb4a2b;hb=7426d04a703580552fe27d06d3566f1ae63ae92f;hp=ed16311929916e69ba5103db915ae6ff70df6698;hpb=cccbba49461dd55e88785dd178887327c15f67cc;p=lhc%2Fweb%2Fwiklou.git 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. }