public function serialize($value) : string { if (!is_float($value)) { throw InvalidValueException::valueDoesNotMatchType($this, $value); } return (string) $value; }