1: <?php
2: /**
3: * Represents the Networks Statistics of a Dedicated TrackMania Server
4: * ManiaLive - TrackMania dedicated server manager in PHP
5: *
6: * @copyright Copyright (c) 2009-2011 NADEO (http://www.nadeo.com)
7: * @license http://www.gnu.org/licenses/lgpl.html LGPL License 3
8: * @version $Revision: 425 $:
9: * @author $Author: melot.philippe $:
10: * @date $Date: 2012-07-18 12:36:36 +0200 (mer., 18 juil. 2012) $:
11: */
12: namespace DedicatedApi\Structures;
13:
14: class NetworkStats extends AbstractStructure
15: {
16: public $uptime;
17: public $nbrConnection;
18: public $meanConnectionTime;
19: public $meanNbrPlayer;
20: public $recvNetRate;
21: public $sendNetRate;
22: public $totalReceivingSize;
23: public $totalSendingSize;
24: public $playerNetInfos;
25:
26: static public function fromArray($array)
27: {
28: $object = parent::fromArray($array);
29: $object->playerNetInfos = Player::fromArrayOfArray($object->playerNetInfos);
30: return $object;
31: }
32: }