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

29 lines
530 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 Music extends AbstractStructure
{
/** var bool */
public $override;
/** var string */
public $url;
/** var string */
public $file;
/**
* @return Music
*/
public static function fromArray($array)
{
$object = parent::fromArray($array);
$object->file = str_replace("\xEF\xBB\xBF", '', $object->file);
return $object;
}
}