1: <?php
2: /**
3: * A double precision signed floating point number.
4: *
5: * @package Elgg.Core
6: * @subpackage XMLRPC
7: */
8: class XMLRPCDoubleParameter extends XMLRPCParameter {
9:
10: /**
11: * New XML Double
12: *
13: * @param int $value Value
14: */
15: function __construct($value) {
16: parent::__construct();
17:
18: $this->value = (float)$value;
19: }
20:
21: /**
22: * Convert to string
23: *
24: * @return string
25: */
26: function __toString() {
27: return "<value><double>{$this->value}</double></value>";
28: }
29: }
30: