TrackManiaControl/libs/Maniaplanet/DedicatedServer/Structures/LadderStats.php

37 lines
750 B
PHP
Raw Permalink Normal View History

2014-05-08 19:33:27 +02:00
<?php
/**
* ManiaPlanet dedicated server Xml-RPC client
*
* @license http://www.gnu.org/licenses/lgpl.html LGPL License 3
*/
namespace Maniaplanet\DedicatedServer\Structures;
class LadderStats extends AbstractStructure
{
/** @var float */
public $lastMatchScore;
/** @var int */
public $nbrMatchWins;
/** @var int */
public $nbrMatchDraws;
/** @var int */
public $nbrMatchLosses;
/** @var string */
public $teamName;
/** @var ZoneRanking[] */
public $playerRankings;
/** @var array */
public $teamRankings;
/**
* @return LadderStats
*/
static function fromArray($array)
{
$object = parent::fromArray($array);
$object->playerRankings = ZoneRanking::fromArrayOfArray($object->playerRankings);
return $object;
}
}