2014-01-16 16:56:24 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* ManiaPlanet dedicated server Xml-RPC client
|
|
|
|
*
|
|
|
|
* @license http://www.gnu.org/licenses/lgpl.html LGPL License 3
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Maniaplanet\DedicatedServer\Xmlrpc;
|
|
|
|
|
2014-04-19 00:32:34 +02:00
|
|
|
class Base64
|
2014-01-16 16:56:24 +01:00
|
|
|
{
|
2014-04-19 00:32:34 +02:00
|
|
|
public $scalar;
|
|
|
|
public $xmlrpc_type = 'base64';
|
2014-01-16 16:56:24 +01:00
|
|
|
|
2014-04-19 00:32:34 +02:00
|
|
|
/**
|
|
|
|
* @param string $data
|
|
|
|
*/
|
2014-01-16 16:56:24 +01:00
|
|
|
function __construct($data)
|
|
|
|
{
|
2014-04-19 00:32:34 +02:00
|
|
|
$this->scalar = $data;
|
2014-01-16 16:56:24 +01:00
|
|
|
}
|
2014-05-08 19:32:14 +02:00
|
|
|
|
2014-05-08 19:38:15 +02:00
|
|
|
/**
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
function __toString()
|
|
|
|
{
|
|
|
|
return $this->scalar;
|
|
|
|
}
|
|
|
|
}
|