aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/XMLRPCDoubleParameter.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/classes/XMLRPCDoubleParameter.php')
-rw-r--r--engine/classes/XMLRPCDoubleParameter.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/engine/classes/XMLRPCDoubleParameter.php b/engine/classes/XMLRPCDoubleParameter.php
new file mode 100644
index 000000000..64cbdff91
--- /dev/null
+++ b/engine/classes/XMLRPCDoubleParameter.php
@@ -0,0 +1,19 @@
+<?php
+/**
+ * @class XMLRPCDoubleParameter A double precision signed floating point number.
+ * @author Curverider Ltd
+ */
+class XMLRPCDoubleParameter extends XMLRPCParameter
+{
+ function __construct($value)
+ {
+ parent::__construct();
+
+ $this->value = (float)$value;
+ }
+
+ function __toString()
+ {
+ return "<value><double>{$this->value}</double></value>";
+ }
+}