27 lines
519 B
PHP
Executable File
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;
|
|
}
|
|
}
|