setKey( $key ); $data->setValue( $value ); $data->setMetric( $metric ); return $data; } /** * Check whether this data factory has any data. * @return boolean */ 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 setEnabled( $enabled ) { // Nothing to do, null factory is always disabled. } }