TrackManiaControl/application/core/Libs/Maniaplanet/DedicatedServer/Structures/FileDesc.php
2014-06-12 15:39:50 +02:00

27 lines
519 B
PHP
Executable File

<?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;
/**
* @return FileDesc
*/
public static function fromArray($array)
{
$object = parent::fromArray($array);
$object->fileName = str_replace("\xEF\xBB\xBF", '', $object->fileName);
return $object;
}
}