/** * @see Object_Class_Data::getVersionPreview * @param float $data * @return float */ public function getVersionPreview($data) { if ($data instanceof \Object_Data_QuantityValue) { return $data->getValue() . " " . $data->getUnit()->getAbbreviation(); } return ""; }