aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/XMLRPCDoubleParameter.php
blob: 1f311b0e9085484d50a2566e1acc95fa336817c2 (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>";
	}
}