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);
|
2014-05-08 19:32:14 +02:00
|
|
|
$object->playerNetInfos = Player::fromArrayOfArray($object->playerNetInfos);
|
2014-01-16 16:56:24 +01:00
|
|
|
return $object;
|
|
|
|
}
|
2014-05-08 19:32:14 +02:00
|
|
|
}
|