aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/XMLRPCDoubleParameter.php
blob: 64cbdff91e91cc77a390fb14dd8c42981e7cff6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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>";
	}
}