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

27 lines
519 B
PHP
Raw Normal View History

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
}