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

38 lines
810 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
*/
2014-05-08 19:38:15 +02:00
2014-01-16 16:56:24 +01:00
namespace Maniaplanet\DedicatedServer\Structures;
class NetworkStats extends AbstractStructure
{
2014-05-08 19:38:15 +02:00
/** @var int */
2014-01-16 16:56:24 +01:00
public $uptime;
2014-05-08 19:38:15 +02:00
/** @var int */
2014-01-16 16:56:24 +01:00
public $nbrConnection;
2014-05-08 19:38:15 +02:00
/** @var int */
2014-01-16 16:56:24 +01:00
public $meanConnectionTime;
2014-05-08 19:38:15 +02:00
/** @var int */
2014-01-16 16:56:24 +01:00
public $meanNbrPlayer;
2014-05-08 19:38:15 +02:00
/** @var int */
2014-01-16 16:56:24 +01:00
public $recvNetRate;
2014-05-08 19:38:15 +02:00
/** @var int */
2014-01-16 16:56:24 +01:00
public $sendNetRate;
2014-05-08 19:38:15 +02:00
/** @var int */
2014-01-16 16:56:24 +01:00
public $totalReceivingSize;
2014-05-08 19:38:15 +02:00
/** @var int */
2014-01-16 16:56:24 +01:00
public $totalSendingSize;
2014-05-08 19:38:15 +02:00
/** @var PlayerNetInfo[] */
2014-01-16 16:56:24 +01:00
public $playerNetInfos;
2024-08-25 22:30:06 +02:00
public static function fromArray($array)
2014-01-16 16:56:24 +01:00
{
$object = parent::fromArray($array);
2014-05-08 19:38:15 +02:00
$object->playerNetInfos = PlayerNetInfo::fromArrayOfArray($object->playerNetInfos);
2014-01-16 16:56:24 +01:00
return $object;
}
2014-05-08 19:38:15 +02:00
}