dedicated-server-api update

This commit is contained in:
Steffen Schröder
2014-05-13 17:37:35 +02:00
parent eb5af6ebd1
commit d16e89d13d
4 changed files with 321 additions and 175 deletions

View File

@ -0,0 +1,16 @@
<?php
/**
* ManiaPlanet dedicated server Xml-RPC client
*
* @license http://www.gnu.org/licenses/lgpl.html LGPL License 3
*/
namespace Maniaplanet\DedicatedServer\Structures;
class TokenInfos extends AbstractStructure
{
/** @var int */
public $tokenCost;
/** @var bool */
public $canPayToken;
}

View File

@ -42,8 +42,8 @@ class VoteRatio extends AbstractStructure
function isValid()
{
return is_string($this->command)
&& is_string($this->param)
&& self::isRatio($this->ratio);
&& is_string($this->param)
&& self::isRatio($this->ratio);
}
/**