2014-05-08 19:33:27 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* ManiaPlanet dedicated server Xml-RPC client
|
|
|
|
*
|
|
|
|
* @license http://www.gnu.org/licenses/lgpl.html LGPL License 3
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Maniaplanet\DedicatedServer\Structures;
|
|
|
|
|
|
|
|
class FileDesc extends AbstractStructure
|
|
|
|
{
|
|
|
|
/** @var string */
|
|
|
|
public $fileName;
|
|
|
|
/** @var string */
|
|
|
|
public $checksum;
|
2014-06-12 15:39:50 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return FileDesc
|
|
|
|
*/
|
|
|
|
public static function fromArray($array)
|
|
|
|
{
|
|
|
|
$object = parent::fromArray($array);
|
|
|
|
$object->fileName = str_replace("\xEF\xBB\xBF", '', $object->fileName);
|
|
|
|
return $object;
|
|
|
|
}
|
2014-05-08 19:33:27 +02:00
|
|
|
}
|