TrackManiaControl/application/core/Maniaplanet/DedicatedServer/Structures/NetworkStats.php
2014-05-01 17:34:59 +02:00

27 lines
636 B
PHP

<?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;
}
}