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