TrackManiaControl/application/core/Maniaplanet/DedicatedServer/Structures/NetworkStats.php

27 lines
636 B
PHP
Raw Normal View History

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\Structures;
class NetworkStats extends AbstractStructure
{
public $uptime;
public $nbrConnection;
public $meanConnectionTime;
public $meanNbrPlayer;
public $recvNetRate;
public $sendNetRate;
public $totalReceivingSize;
public $totalSendingSize;
public $playerNetInfos;
static public function fromArray($array)
{
$object = parent::fromArray($array);
$object->playerNetInfos = Player::fromArrayOfArray($object->playerNetInfos);
return $object;
}
}