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=d346f651f804af25917ca6a70a1226cde679e969;hb=74426f3cf796b149f1ae445e41815bbe148640b2;hpb=bd2883903db18bec94c684edc6e6498a2612ac3d diff --git a/includes/libs/stats/NullStatsdDataFactory.php b/includes/libs/stats/NullStatsdDataFactory.php index d346f651f8..63de8f2f63 100644 --- a/includes/libs/stats/NullStatsdDataFactory.php +++ b/includes/libs/stats/NullStatsdDataFactory.php @@ -2,7 +2,6 @@ use Liuggio\StatsdClient\Entity\StatsdData; use Liuggio\StatsdClient\Entity\StatsdDataInterface; -use Liuggio\StatsdClient\Factory\StatsdDataFactoryInterface; /** * @author Addshore @@ -106,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. }