dedicated-server-api update
This commit is contained in:
		@@ -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;
 | 
			
		||||
}
 | 
			
		||||
@@ -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);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user